Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/sculpt_paint/paint_image.c
| Show First 20 Lines • Show All 501 Lines • ▼ Show 20 Lines | static PaintOperation *texture_paint_init(bContext *C, wmOperator *op, float mouse[2]) | ||||
| if (!pop->custom_paint) { | if (!pop->custom_paint) { | ||||
| MEM_freeN(pop); | MEM_freeN(pop); | ||||
| return NULL; | return NULL; | ||||
| } | } | ||||
| settings->imapaint.flag |= IMAGEPAINT_DRAWING; | settings->imapaint.flag |= IMAGEPAINT_DRAWING; | ||||
| ED_undo_paint_push_begin(UNDO_PAINT_IMAGE, op->type->name, | ED_undo_paint_push_begin(UNDO_PAINT_IMAGE, op->type->name, | ||||
| ED_image_undo_restore, ED_image_undo_free); | ED_image_undo_restore, ED_image_undo_free, NULL); | ||||
| { | { | ||||
| UnifiedPaintSettings *ups = &settings->unified_paint_settings; | UnifiedPaintSettings *ups = &settings->unified_paint_settings; | ||||
| ups->stroke_active = true; | ups->stroke_active = true; | ||||
| } | } | ||||
| return pop; | return pop; | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 627 Lines • Show Last 20 Lines | |||||