|
Blender V5.0
|
#include <cstdlib>#include <cstring>#include "DNA_object_types.h"#include "DNA_scene_types.h"#include "BLI_utildefines.h"#include "BKE_context.hh"#include "BKE_editmesh.hh"#include "BKE_layer.hh"#include "BKE_object.hh"#include "DEG_depsgraph.hh"#include "RNA_access.hh"#include "RNA_prototypes.hh"#include "WM_api.hh"#include "WM_types.hh"#include "UI_interface.hh"#include "UI_interface_layout.hh"#include "UI_resources.hh"#include "view3d_intern.hh"Go to the source code of this file.
Functions | |
Toggle Matcap Flip Operator | |
| static wmOperatorStatus | toggle_matcap_flip_exec (bContext *C, wmOperator *) |
| void | VIEW3D_OT_toggle_matcap_flip (wmOperatorType *ot) |
UI Templates | |
| void | uiTemplateEditModeSelection (uiLayout *layout, bContext *C) |
| static void | uiTemplatePaintModeSelection (uiLayout *layout, bContext *C) |
| void | uiTemplateHeader3D_mode (uiLayout *layout, bContext *C) |
|
static |
Definition at line 40 of file view3d_header.cc.
References C, CTX_data_main(), CTX_data_scene(), CTX_wm_area(), CTX_wm_view3d(), DEG_id_tag_update(), Scene::display, ED_view3d_shade_update(), View3DShading::flag, Scene::id, ID_RECALC_SYNC_TO_EVAL, NC_SCENE, NC_SPACE, ND_RENDER_OPTIONS, ND_SPACE_VIEW3D, OPERATOR_FINISHED, SceneDisplay::shading, View3D::shading, V3D_SHADING_MATCAP_FLIP_X, and WM_event_add_notifier().
Referenced by VIEW3D_OT_toggle_matcap_flip().
Definition at line 76 of file view3d_header.cc.
References BKE_editmesh_from_object(), C, CTX_data_edit_object(), blender::wm::InvokeDefault, OB_MESH, uiLayout::op(), ot, RNA_enum_set(), uiLayout::row(), SCE_SELECT_EDGE, SCE_SELECT_FACE, SCE_SELECT_VERTEX, BMEditMesh::selectmode, Object::type, UI_ITEM_NONE, UI_ITEM_O_DEPRESS, and WM_operatortype_find().
Referenced by uiTemplateHeader3D_mode().
Definition at line 137 of file view3d_header.cc.
References BKE_view_layer_active_object_get(), BKE_view_layer_synced_ensure(), C, CTX_data_edit_object(), CTX_data_scene(), CTX_data_view_layer(), ELEM, Object::mode, OB_MODE_SCULPT, OB_MODE_TEXTURE_PAINT, OB_MODE_VERTEX_PAINT, OB_MODE_WEIGHT_PAINT, uiTemplateEditModeSelection(), and uiTemplatePaintModeSelection().
Definition at line 108 of file view3d_header.cc.
References BKE_object_pose_armature_get(), BKE_view_layer_active_object_get(), BKE_view_layer_synced_ensure(), C, CTX_data_scene(), CTX_data_view_layer(), Object::data, ELEM, Object::mode, OB_MODE_PARTICLE_EDIT, OB_MODE_SCULPT, OB_MODE_TEXTURE_PAINT, uiLayout::prop(), RNA_pointer_create_discrete(), uiLayout::row(), and UI_ITEM_R_ICON_ONLY.
Referenced by uiTemplateHeader3D_mode().
| void VIEW3D_OT_toggle_matcap_flip | ( | wmOperatorType * | ot | ) |
Definition at line 59 of file view3d_header.cc.
References ot, and toggle_matcap_flip_exec().
Referenced by view3d_operatortypes().