[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [39318] trunk/blender/source/blender/ editors/object/object_add.c: soft limits for add object rotation value, without cont.

Campbell Barton ideasman42 at gmail.com
Fri Aug 12 05:18:05 CEST 2011


Revision: 39318
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=39318
Author:   campbellbarton
Date:     2011-08-12 03:18:04 +0000 (Fri, 12 Aug 2011)
Log Message:
-----------
soft limits for add object rotation value, without cont. grab it would get to very large numbers with a small drag.

Modified Paths:
--------------
    trunk/blender/source/blender/editors/object/object_add.c

Modified: trunk/blender/source/blender/editors/object/object_add.c
===================================================================
--- trunk/blender/source/blender/editors/object/object_add.c	2011-08-12 03:16:55 UTC (rev 39317)
+++ trunk/blender/source/blender/editors/object/object_add.c	2011-08-12 03:18:04 UTC (rev 39318)
@@ -182,7 +182,7 @@
 	}
 	
 	RNA_def_float_vector_xyz(ot->srna, "location", 3, NULL, -FLT_MAX, FLT_MAX, "Location", "Location for the newly added object", -FLT_MAX, FLT_MAX);
-	RNA_def_float_rotation(ot->srna, "rotation", 3, NULL, -FLT_MAX, FLT_MAX, "Rotation", "Rotation for the newly added object", -FLT_MAX, FLT_MAX);
+	RNA_def_float_rotation(ot->srna, "rotation", 3, NULL, -FLT_MAX, FLT_MAX, "Rotation", "Rotation for the newly added object", -M_PI * 2.0f, M_PI * 2.0f);
 	
 	prop = RNA_def_boolean_layer_member(ot->srna, "layers", 20, NULL, "Layer", "");
 	RNA_def_property_flag(prop, PROP_HIDDEN);




More information about the Bf-blender-cvs mailing list