Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/sculpt_paint/paint_image.c
| Show First 20 Lines • Show All 1,242 Lines • ▼ Show 20 Lines | if (ob->mode & mode_flag) { | ||||
| ED_object_texture_paint_mode_exit_ex(bmain, scene, ob); | ED_object_texture_paint_mode_exit_ex(bmain, scene, ob); | ||||
| } | } | ||||
| else { | else { | ||||
| ED_object_texture_paint_mode_enter_ex(bmain, scene, ob); | ED_object_texture_paint_mode_enter_ex(bmain, scene, ob); | ||||
| } | } | ||||
| 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 | |||||