Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Montagne <montagne29@wanadoo.fr>2018-11-30 13:57:14 +0300
committerBastien Montagne <montagne29@wanadoo.fr>2018-11-30 13:59:16 +0300
commited07bccf7c1fe7cbb54902e0269f8fc52773cf85 (patch)
treed144b9ba35f75618372f1b32e13bec51d0d8998b /source/blender/editors/sculpt_paint/paint_image.c
parent180e871020bdb95cbbef22dc0339c69383cfc3aa (diff)
Fix missing "need eval data" for texpaint mode toggle op.
Note that am not sure that is actually needed, since switching to that mode does not actually use any eval data, it's only needed during init of first stroke... But in doubt, that won't hurt to have it here anyway.
Diffstat (limited to 'source/blender/editors/sculpt_paint/paint_image.c')
-rw-r--r--source/blender/editors/sculpt_paint/paint_image.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/sculpt_paint/paint_image.c b/source/blender/editors/sculpt_paint/paint_image.c
index f9b2e0bbb01..86f7486d57d 100644
--- a/source/blender/editors/sculpt_paint/paint_image.c
+++ b/source/blender/editors/sculpt_paint/paint_image.c
@@ -1166,7 +1166,7 @@ void PAINT_OT_texture_paint_toggle(wmOperatorType *ot)
ot->poll = texture_paint_toggle_poll;
/* flags */
- ot->flag = OPTYPE_REGISTER | OPTYPE_UNDO;
+ ot->flag = OPTYPE_REGISTER | OPTYPE_UNDO | OPTYPE_USE_EVAL_DATA;
}