diff options
author | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2019-03-26 14:34:10 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2019-03-26 14:36:47 +0300 |
commit | f786861820e17d14e617c2d7635fc1e0b49ecf08 (patch) | |
tree | 84812cdd445811e9e75547818c91f0da347049c4 /source/blender/editors/sculpt_paint | |
parent | b33005c1f4f0874da98949c26b551c65c08c15b4 (diff) |
Fix T62756, T62131: moving stencil texture fails after moving stencil mask
Diffstat (limited to 'source/blender/editors/sculpt_paint')
-rw-r--r-- | source/blender/editors/sculpt_paint/paint_ops.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/source/blender/editors/sculpt_paint/paint_ops.c b/source/blender/editors/sculpt_paint/paint_ops.c index 12e98bc5d33..e26b30fbf45 100644 --- a/source/blender/editors/sculpt_paint/paint_ops.c +++ b/source/blender/editors/sculpt_paint/paint_ops.c @@ -815,8 +815,11 @@ static void BRUSH_OT_stencil_control(wmOperatorType *ot) /* flags */ ot->flag = 0; - RNA_def_enum(ot->srna, "mode", stencil_control_items, STENCIL_TRANSLATE, "Tool", ""); - RNA_def_enum(ot->srna, "texmode", stencil_texture_items, STENCIL_PRIMARY, "Tool", ""); + PropertyRNA *prop; + prop = RNA_def_enum(ot->srna, "mode", stencil_control_items, STENCIL_TRANSLATE, "Tool", ""); + RNA_def_property_flag(prop, PROP_HIDDEN | PROP_SKIP_SAVE); + prop = RNA_def_enum(ot->srna, "texmode", stencil_texture_items, STENCIL_PRIMARY, "Tool", ""); + RNA_def_property_flag(prop, PROP_HIDDEN | PROP_SKIP_SAVE); } |