Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/sculpt_paint/paint_image.c
| Show First 20 Lines • Show All 1,232 Lines • ▼ Show 20 Lines | void PAINT_OT_texture_paint_toggle(wmOperatorType *ot) | ||||
| ot->idname = "PAINT_OT_texture_paint_toggle"; | ot->idname = "PAINT_OT_texture_paint_toggle"; | ||||
| ot->description = "Toggle texture paint mode in 3D view"; | ot->description = "Toggle texture paint mode in 3D view"; | ||||
| /* api callbacks */ | /* api callbacks */ | ||||
| ot->exec = texture_paint_toggle_exec; | ot->exec = texture_paint_toggle_exec; | ||||
| ot->poll = texture_paint_toggle_poll; | ot->poll = texture_paint_toggle_poll; | ||||
| /* flags */ | /* flags */ | ||||
| ot->flag = OPTYPE_REGISTER | OPTYPE_UNDO | OPTYPE_USE_EVAL_DATA; | ot->flag = OPTYPE_REGISTER | OPTYPE_UNDO; | ||||
| } | } | ||||
| static int brush_colors_flip_exec(bContext *C, wmOperator *UNUSED(op)) | static int brush_colors_flip_exec(bContext *C, wmOperator *UNUSED(op)) | ||||
| { | { | ||||
| Scene *scene = CTX_data_scene(C); | Scene *scene = CTX_data_scene(C); | ||||
| UnifiedPaintSettings *ups = &scene->toolsettings->unified_paint_settings; | UnifiedPaintSettings *ups = &scene->toolsettings->unified_paint_settings; | ||||
| ViewLayer *view_layer = CTX_data_view_layer(C); | ViewLayer *view_layer = CTX_data_view_layer(C); | ||||
| ▲ Show 20 Lines • Show All 95 Lines • Show Last 20 Lines | |||||