[Bf-blender-cvs] [499faa8b11] master: Fix second part T50565: Using planar transform once makes it enabled by default
Sergey Sharybin
noreply at git.blender.org
Thu Mar 2 11:21:43 CET 2017
Commit: 499faa8b1135d519675dde841f14333892a4d391
Author: Sergey Sharybin
Date: Thu Mar 2 11:20:57 2017 +0100
Branches: master
https://developer.blender.org/rB499faa8b1135d519675dde841f14333892a4d391
Fix second part T50565: Using planar transform once makes it enabled by default
Was caused by property being saved by the operator manager.
===================================================================
M source/blender/editors/space_view3d/view3d_edit.c
===================================================================
diff --git a/source/blender/editors/space_view3d/view3d_edit.c b/source/blender/editors/space_view3d/view3d_edit.c
index 5e13b3f27f..df649a59f0 100644
--- a/source/blender/editors/space_view3d/view3d_edit.c
+++ b/source/blender/editors/space_view3d/view3d_edit.c
@@ -4781,6 +4781,7 @@ static int manipulator_invoke(bContext *C, wmOperator *op, const wmEvent *event)
void VIEW3D_OT_manipulator(wmOperatorType *ot)
{
+ PropertyRNA *prop;
/* identifiers */
ot->name = "3D Manipulator";
@@ -4795,8 +4796,9 @@ void VIEW3D_OT_manipulator(wmOperatorType *ot)
/* properties to pass to transform */
Transform_Properties(ot, P_CONSTRAINT);
- RNA_def_boolean(ot->srna, "use_planar_constraint", false, "Planar Constraint", "Limit the transformation to the "
- "two axes that have not been clicked (translate/scale only)");
+ prop = RNA_def_boolean(ot->srna, "use_planar_constraint", false, "Planar Constraint", "Limit the transformation to the "
+ "two axes that have not been clicked (translate/scale only)");
+ RNA_def_property_flag(prop, PROP_SKIP_SAVE);
}
static int enable_manipulator_invoke(bContext *C, wmOperator *op, const wmEvent *UNUSED(event))
More information about the Bf-blender-cvs
mailing list