[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [45264] trunk/blender/source/blender/ editors/space_view3d/view3d_edit.c: Fix #30717: Bmesh Branch manipulator bug (Maya Keymaps)

Sergey Sharybin sergey.vfx at gmail.com
Thu Mar 29 17:50:53 CEST 2012


Revision: 45264
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=45264
Author:   nazgul
Date:     2012-03-29 15:50:51 +0000 (Thu, 29 Mar 2012)
Log Message:
-----------
Fix #30717: Bmesh Branch manipulator bug (Maya Keymaps)

Issue was caused by storing operator properties for VIEW3D_OT_enable_manipulator

Modified Paths:
--------------
    trunk/blender/source/blender/editors/space_view3d/view3d_edit.c

Modified: trunk/blender/source/blender/editors/space_view3d/view3d_edit.c
===================================================================
--- trunk/blender/source/blender/editors/space_view3d/view3d_edit.c	2012-03-29 15:41:58 UTC (rev 45263)
+++ trunk/blender/source/blender/editors/space_view3d/view3d_edit.c	2012-03-29 15:50:51 UTC (rev 45264)
@@ -3399,6 +3399,8 @@
 
 void VIEW3D_OT_enable_manipulator(wmOperatorType *ot)
 {
+	PropertyRNA *prop;
+
 	/* identifiers */
 	ot->name = "Enable 3D Manipulator";
 	ot->description = "Enable the transform manipulator for use";
@@ -3409,9 +3411,12 @@
 	ot->poll = ED_operator_view3d_active;
 	
 	/* rna later */
-	RNA_def_boolean(ot->srna, "translate", 0, "Translate", "Enable the translate manipulator");
-	RNA_def_boolean(ot->srna, "rotate", 0, "Rotate", "Enable the rotate manipulator");
-	RNA_def_boolean(ot->srna, "scale", 0, "Scale", "Enable the scale manipulator");
+	prop = RNA_def_boolean(ot->srna, "translate", 0, "Translate", "Enable the translate manipulator");
+	RNA_def_property_flag(prop, PROP_SKIP_SAVE);
+	prop = RNA_def_boolean(ot->srna, "rotate", 0, "Rotate", "Enable the rotate manipulator");
+	RNA_def_property_flag(prop, PROP_SKIP_SAVE);
+	prop = RNA_def_boolean(ot->srna, "scale", 0, "Scale", "Enable the scale manipulator");
+	RNA_def_property_flag(prop, PROP_SKIP_SAVE);
 }
 
 /* ************************* below the line! *********************** */




More information about the Bf-blender-cvs mailing list