[Bf-blender-cvs] [f786861820e] master: Fix T62756, T62131: moving stencil texture fails after moving stencil mask
Brecht Van Lommel
noreply at git.blender.org
Tue Mar 26 12:37:46 CET 2019
Commit: f786861820e17d14e617c2d7635fc1e0b49ecf08
Author: Brecht Van Lommel
Date: Tue Mar 26 12:34:10 2019 +0100
Branches: master
https://developer.blender.org/rBf786861820e17d14e617c2d7635fc1e0b49ecf08
Fix T62756, T62131: moving stencil texture fails after moving stencil mask
===================================================================
M source/blender/editors/sculpt_paint/paint_ops.c
===================================================================
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);
}
More information about the Bf-blender-cvs
mailing list