[Bf-blender-cvs] [e6404274a1e] master: Fix T53441: Inset doesn't start at zero

Campbell Barton noreply at git.blender.org
Wed Dec 6 06:34:37 CET 2017


Commit: e6404274a1eb0ed5f50445f5c7840720a03713fa
Author: Campbell Barton
Date:   Wed Dec 6 16:45:51 2017 +1100
Branches: master
https://developer.blender.org/rBe6404274a1eb0ed5f50445f5c7840720a03713fa

Fix T53441: Inset doesn't start at zero

===================================================================

M	source/blender/editors/mesh/editmesh_inset.c

===================================================================

diff --git a/source/blender/editors/mesh/editmesh_inset.c b/source/blender/editors/mesh/editmesh_inset.c
index 3dd199f1615..afe52ec69f4 100644
--- a/source/blender/editors/mesh/editmesh_inset.c
+++ b/source/blender/editors/mesh/editmesh_inset.c
@@ -525,8 +525,11 @@ void MESH_OT_inset(wmOperatorType *ot)
 	prop = RNA_def_float_distance(ot->srna, "thickness", 0.01f, 0.0f, 1e12f, "Thickness", "", 0.0f, 10.0f);
 	/* use 1 rather then 10 for max else dragging the button moves too far */
 	RNA_def_property_ui_range(prop, 0.0, 1.0, 0.01, 4);
+	RNA_def_property_flag(prop, PROP_SKIP_SAVE);
+
 	prop = RNA_def_float_distance(ot->srna, "depth", 0.0f, -1e12f, 1e12f, "Depth", "", -10.0f, 10.0f);
 	RNA_def_property_ui_range(prop, -10.0f, 10.0f, 0.01, 4);
+	RNA_def_property_flag(prop, PROP_SKIP_SAVE);
 
 	RNA_def_boolean(ot->srna, "use_outset", false, "Outset", "Outset rather than inset");
 	RNA_def_boolean(ot->srna, "use_select_inset", false, "Select Outer", "Select the new inset faces");



More information about the Bf-blender-cvs mailing list