Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/sculpt_paint/sculpt.c
- This file is larger than 256 KB, so syntax highlighting is disabled by default.
| Show First 20 Lines • Show All 8,549 Lines • ▼ Show 20 Lines | if (ob->mode & mode_flag) { | ||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
| 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 868 Lines • Show Last 20 Lines | |||||