127 ot->
name =
"Strokes Paint Mode Toggle";
128 ot->
idname =
"GREASE_PENCIL_OT_paintmode_toggle";
129 ot->
description =
"Enter/Exit paint mode for Grease Pencil strokes";
137 ot->
srna,
"back",
false,
"Return to Previous Mode",
"Return to previous mode");
231 ot->
name =
"Strokes Sculpt Mode Toggle";
232 ot->
idname =
"GREASE_PENCIL_OT_sculptmode_toggle";
233 ot->
description =
"Enter/Exit sculpt mode for Grease Pencil strokes";
241 ot->
srna,
"back",
false,
"Return to Previous Mode",
"Return to previous mode");
323 ot->
name =
"Strokes Weight Mode Toggle";
324 ot->
idname =
"GREASE_PENCIL_OT_weightmode_toggle";
325 ot->
description =
"Enter/Exit weight paint mode for Grease Pencil strokes";
333 ot->
srna,
"back",
false,
"Return to Previous Mode",
"Return to previous mode");
425 ot->
name =
"Strokes Vertex Mode Toggle";
426 ot->
idname =
"GREASE_PENCIL_OT_vertexmode_toggle";
427 ot->
description =
"Enter/Exit vertex paint mode for Grease Pencil strokes";
435 ot->
srna,
"back",
false,
"Return to Previous Mode",
"Return to previous mode");
#define ID_IS_EDITABLE(_id)
#define ND_GPENCIL_EDITMODE
static void GREASE_PENCIL_OT_sculptmode_toggle(wmOperatorType *ot)
static void GREASE_PENCIL_OT_weightmode_toggle(wmOperatorType *ot)
bool ensure_selection_domain(ToolSettings *ts, Object *object)
static bool sculptmode_toggle_poll(bContext *C)
static bool grease_pencil_poll_vertex_cursor(bContext *C)
static wmOperatorStatus vertexmode_toggle_exec(bContext *C, wmOperator *op)
static wmOperatorStatus weightmode_toggle_exec(bContext *C, wmOperator *op)
static bool paintmode_toggle_poll(bContext *C)
static wmOperatorStatus paintmode_toggle_exec(bContext *C, wmOperator *op)
static bool brush_cursor_poll(bContext *C)
static bool weightmode_toggle_poll(bContext *C)
static wmOperatorStatus sculptmode_toggle_exec(bContext *C, wmOperator *op)
static bool sculpt_poll_view3d(bContext *C)
static void GREASE_PENCIL_OT_paintmode_toggle(wmOperatorType *ot)
static bool vertexmode_toggle_poll(bContext *C)
static void GREASE_PENCIL_OT_vertexmode_toggle(wmOperatorType *ot)
static bool grease_pencil_poll_weight_cursor(bContext *C)
void posemode_set_for_weight_paint(bContext *C, Main *bmain, Object *ob, bool is_mode_set)
BLI_assert(slot->slot_subtype.map==BMO_OP_SLOT_SUBTYPE_MAP_FLT)
void WM_operatortype_append(void(*opfunc)(wmOperatorType *))
void BKE_brush_init_gpencil_settings(Brush *brush)
void ED_paint_cursor_start(Paint *paint, bool(*poll)(bContext *C))
void DEG_id_tag_update(ID *id, unsigned int flags)
@ OB_MODE_VERTEX_GREASE_PENCIL
@ OB_MODE_SCULPT_GREASE_PENCIL
@ OB_MODE_WEIGHT_GREASE_PENCIL
@ OB_MODE_PAINT_GREASE_PENCIL
void BKE_paint_brushes_ensure(Main *bmain, Paint *paint)
void BKE_paint_init(Main *bmain, Scene *sce, PaintMode mode, bool ensure_brushes=true)
void ED_operatortypes_grease_pencil_modes()
void WM_toolsystem_update_from_context_view3d(bContext *C)
RegionView3D * CTX_wm_region_view3d(const bContext *C)
ToolSettings * CTX_data_tool_settings(const bContext *C)
bool RNA_boolean_get(PointerRNA *ptr, const char *name)
void WM_event_add_notifier(const bContext *C, uint type, void *reference)
wmMsgBus * CTX_wm_message_bus(const bContext *C)
void RNA_def_property_flag(PropertyRNA *prop, PropertyFlag flag)
bool WM_toolsystem_active_tool_has_custom_cursor(const bContext *C)
Main * CTX_data_main(const bContext *C)
bool WM_toolsystem_active_tool_is_brush(const bContext *C)
Paint * BKE_paint_get_active_from_paintmode(Scene *sce, PaintMode mode)
Brush * BKE_paint_brush(Paint *paint)
Scene * CTX_data_scene(const bContext *C)
PropertyRNA * RNA_def_boolean(StructOrFunctionRNA *cont_, const char *identifier, const bool default_value, const char *ui_name, const char *ui_description)
bool BKE_paint_ensure(ToolSettings *ts, Paint **r_paint)
void BKE_paint_brushes_validate(Main *bmain, Paint *paint)
Object * CTX_data_active_object(const bContext *C)
void BKE_grease_pencil_palette_ensure(Main *bmain, Scene *scene)
wmOperatorStatus(*) exec(bContext *C, wmOperator *op) ATTR_WARN_UNUSED_RESULT
bool(*) poll(bContext *C) ATTR_WARN_UNUSED_RESULT
#define WM_msg_publish_rna_prop(mbus, id_, data_, type_, prop_)