|
Blender
V3.3
|
#include <stdio.h>#include <stdlib.h>#include <string.h>#include "DNA_gpencil_types.h"#include "DNA_object_types.h"#include "DNA_scene_types.h"#include "BLI_math_base.h"#include "BLI_utildefines.h"#include "BLT_translation.h"#include "BKE_context.h"#include "BKE_editmesh.h"#include "DEG_depsgraph.h"#include "RNA_access.h"#include "RNA_prototypes.h"#include "WM_api.h"#include "WM_types.h"#include "ED_mesh.h"#include "ED_undo.h"#include "UI_interface.h"#include "UI_resources.h"#include "view3d_intern.h"Go to the source code of this file.
Macros | |
| #define | B_SEL_VERT 110 |
| #define | B_SEL_EDGE 111 |
| #define | B_SEL_FACE 112 |
Functions | |
Toggle Matcap Flip Operator | |
| static int | toggle_matcap_flip (bContext *C, wmOperator *UNUSED(op)) |
| void | VIEW3D_OT_toggle_matcap_flip (wmOperatorType *ot) |
UI Templates | |
| void | uiTemplateEditModeSelection (uiLayout *layout, struct bContext *C) |
| static void | uiTemplatePaintModeSelection (uiLayout *layout, struct bContext *C) |
| void | uiTemplateHeader3D_mode (uiLayout *layout, struct bContext *C) |
| #define B_SEL_EDGE 111 |
Definition at line 41 of file view3d_header.c.
| #define B_SEL_FACE 112 |
Definition at line 42 of file view3d_header.c.
| #define B_SEL_VERT 110 |
Definition at line 40 of file view3d_header.c.
|
static |
Definition at line 48 of file view3d_header.c.
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_COPY_ON_WRITE, NC_SCENE, NC_SPACE, ND_RENDER_OPTIONS, ND_SPACE_VIEW3D, OPERATOR_FINISHED, scene, SceneDisplay::shading, View3D::shading, V3D_SHADING_MATCAP_FLIP_X, and WM_event_add_notifier().
Referenced by VIEW3D_OT_toggle_matcap_flip().
Definition at line 84 of file view3d_header.c.
References BKE_editmesh_from_object(), C, CTX_data_edit_object(), NULL, OB_MESH, ot, RNA_enum_set(), SCE_SELECT_EDGE, SCE_SELECT_FACE, SCE_SELECT_VERTEX, BMEditMesh::selectmode, Object::type, UI_ITEM_O_DEPRESS, uiItemFullO_ptr(), uiLayoutRow(), WM_OP_INVOKE_DEFAULT, and WM_operatortype_find().
Referenced by uiTemplateHeader3D_mode().
Definition at line 147 of file view3d_header.c.
References C, CTX_data_edit_object(), CTX_data_gpencil_data(), CTX_data_view_layer(), ELEM, bGPdata::flag, GP_DATA_STROKE_EDITMODE, Object::mode, NULL, OB_MODE_SCULPT, OB_MODE_TEXTURE_PAINT, OB_MODE_VERTEX_PAINT, OB_MODE_WEIGHT_PAINT, OBACT, uiTemplateEditModeSelection(), and uiTemplatePaintModeSelection().
Definition at line 125 of file view3d_header.c.
References C, CTX_data_view_layer(), Object::data, ELEM, Object::mode, OB_MODE_PARTICLE_EDIT, OB_MODE_SCULPT, OB_MODE_TEXTURE_PAINT, OBACT, RNA_pointer_create(), UI_ITEM_R_ICON_ONLY, uiItemR(), and uiLayoutRow().
Referenced by uiTemplateHeader3D_mode().
| void VIEW3D_OT_toggle_matcap_flip | ( | wmOperatorType * | ot | ) |
Definition at line 67 of file view3d_header.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::idname, wmOperatorType::name, ot, and toggle_matcap_flip().
Referenced by view3d_operatortypes().