Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/sculpt_paint/paint_image.c
| Show First 20 Lines • Show All 1,130 Lines • ▼ Show 20 Lines | else { | ||||
| toggle_paint_cursor(C, 1); | toggle_paint_cursor(C, 1); | ||||
| } | } | ||||
| 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; | ||||
| } | } | ||||
| void PAINT_OT_texture_paint_toggle(wmOperatorType *ot) | void PAINT_OT_texture_paint_toggle(wmOperatorType *ot) | ||||
| { | { | ||||
| /* identifiers */ | /* identifiers */ | ||||
| ot->name = "Texture Paint Toggle"; | ot->name = "Texture Paint Toggle"; | ||||
| ot->idname = "PAINT_OT_texture_paint_toggle"; | ot->idname = "PAINT_OT_texture_paint_toggle"; | ||||
| ▲ Show 20 Lines • Show All 118 Lines • Show Last 20 Lines | |||||