Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/sculpt_paint/sculpt.c
| Show First 20 Lines • Show All 5,814 Lines • ▼ Show 20 Lines | static int sculpt_mode_toggle_exec(bContext *C, wmOperator *op) | ||||
| else { | else { | ||||
| ED_object_sculptmode_enter_ex(depsgraph, scene, ob, op->reports); | ED_object_sculptmode_enter_ex(depsgraph, scene, ob, op->reports); | ||||
| } | } | ||||
| WM_event_add_notifier(C, NC_SCENE | ND_MODE, scene); | WM_event_add_notifier(C, NC_SCENE | ND_MODE, scene); | ||||
| WM_msg_publish_rna_prop(mbus, &ob->id, ob, Object, mode); | WM_msg_publish_rna_prop(mbus, &ob->id, ob, Object, mode); | ||||
| WM_toolsystem_update_from_context_view3d(C); | |||||
| return OPERATOR_FINISHED; | return OPERATOR_FINISHED; | ||||
| } | } | ||||
| static void SCULPT_OT_sculptmode_toggle(wmOperatorType *ot) | static void SCULPT_OT_sculptmode_toggle(wmOperatorType *ot) | ||||
| { | { | ||||
| /* identifiers */ | /* identifiers */ | ||||
| ot->name = "Sculpt Mode"; | ot->name = "Sculpt Mode"; | ||||
| ot->idname = "SCULPT_OT_sculptmode_toggle"; | ot->idname = "SCULPT_OT_sculptmode_toggle"; | ||||
| ▲ Show 20 Lines • Show All 242 Lines • Show Last 20 Lines | |||||