[Bf-blender-cvs] [2bf38257112] master: Fix T53145: bevel tool does not start with amount at zero.

Brecht Van Lommel noreply at git.blender.org
Mon Nov 27 18:21:29 CET 2017


Commit: 2bf382571126382d80bd12b471324d38a480cd6a
Author: Brecht Van Lommel
Date:   Mon Nov 27 16:55:27 2017 +0100
Branches: master
https://developer.blender.org/rB2bf382571126382d80bd12b471324d38a480cd6a

Fix T53145: bevel tool does not start with amount at zero.

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

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

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

diff --git a/source/blender/editors/mesh/editmesh_bevel.c b/source/blender/editors/mesh/editmesh_bevel.c
index e541df8ffa3..68fd4212004 100644
--- a/source/blender/editors/mesh/editmesh_bevel.c
+++ b/source/blender/editors/mesh/editmesh_bevel.c
@@ -623,6 +623,7 @@ void MESH_OT_bevel(wmOperatorType *ot)
 	RNA_def_enum(ot->srna, "offset_type", offset_type_items, 0, "Amount Type", "What distance Amount measures");
 	prop = RNA_def_float(ot->srna, "offset", 0.0f, -1e6f, 1e6f, "Amount", "", 0.0f, 1.0f);
 	RNA_def_property_float_array_funcs_runtime(prop, NULL, NULL, mesh_ot_bevel_offset_range_func);
+	RNA_def_property_flag(prop, PROP_SKIP_SAVE);
 	RNA_def_int(ot->srna, "segments", 1, 1, SEGMENTS_HARD_MAX, "Segments", "Segments for curved edge", 1, 8);
 	RNA_def_float(ot->srna, "profile", 0.5f, PROFILE_HARD_MIN, 1.0f, "Profile",
 		"Controls profile shape (0.5 = round)", PROFILE_HARD_MIN, 1.0f);



More information about the Bf-blender-cvs mailing list