[Bf-blender-cvs] [e6e5fd5] pie-menus: remove rna_Space_transform_manipulators_update

Campbell Barton noreply at git.blender.org
Thu Aug 7 16:11:14 CEST 2014


Commit: e6e5fd54752f1fcd76777230694c048b001ca19b
Author: Campbell Barton
Date:   Fri Aug 8 00:09:38 2014 +1000
Branches: pie-menus
https://developer.blender.org/rBe6e5fd54752f1fcd76777230694c048b001ca19b

remove rna_Space_transform_manipulators_update

Better not have settings manipulate eachother where possible,
in this case an operator could be used to manage mixing manipulator options

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

M	source/blender/makesrna/intern/rna_space.c

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

diff --git a/source/blender/makesrna/intern/rna_space.c b/source/blender/makesrna/intern/rna_space.c
index 815806c..6e42133 100644
--- a/source/blender/makesrna/intern/rna_space.c
+++ b/source/blender/makesrna/intern/rna_space.c
@@ -350,14 +350,6 @@ static void rna_Space_view2d_sync_update(Main *UNUSED(bmain), Scene *UNUSED(scen
 	}
 }
 
-static void rna_Space_transform_manipulators_update(Main *UNUSED(bmain), Scene *UNUSED(scene), PointerRNA *ptr)
-{
-	View3D *v3d = ptr->data;
-
-	if (v3d->twtype != 0)
-		v3d->twflag |= V3D_USE_MANIPULATOR;
-}
-
 static PointerRNA rna_CurrentOrientation_get(PointerRNA *ptr)
 {
 	Scene *scene = ((bScreen *)ptr->id.data)->scene;
@@ -2089,7 +2081,7 @@ static void rna_def_space_view3d(BlenderRNA *brna)
 	RNA_def_property_enum_items(prop, manipulators_items);
 	RNA_def_property_flag(prop, PROP_ENUM_FLAG);
 	RNA_def_property_ui_text(prop, "Transform Manipulators", "Transformation manipulators");
-	RNA_def_property_update(prop, NC_SPACE | ND_SPACE_VIEW3D, "rna_Space_transform_manipulators_update");
+	RNA_def_property_update(prop, NC_SPACE | ND_SPACE_VIEW3D, NULL);
 	
 	prop = RNA_def_property(srna, "transform_orientation", PROP_ENUM, PROP_NONE);
 	RNA_def_property_enum_sdna(prop, NULL, "twmode");




More information about the Bf-blender-cvs mailing list