[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [34823] trunk/blender/source/blender/ makesrna/intern/rna_nodetree.c: Bugfix #26066

Ton Roosendaal ton at blender.org
Sun Feb 13 14:55:42 CET 2011


Revision: 34823
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=34823
Author:   ton
Date:     2011-02-13 13:55:41 +0000 (Sun, 13 Feb 2011)
Log Message:
-----------
Bugfix #26066

Shader node "Mapping" had buttons assuming it stored radians, drawing
the values converted wrongly. In this case the storage has degrees...

Modified Paths:
--------------
    trunk/blender/source/blender/makesrna/intern/rna_nodetree.c

Modified: trunk/blender/source/blender/makesrna/intern/rna_nodetree.c
===================================================================
--- trunk/blender/source/blender/makesrna/intern/rna_nodetree.c	2011-02-13 13:50:19 UTC (rev 34822)
+++ trunk/blender/source/blender/makesrna/intern/rna_nodetree.c	2011-02-13 13:55:41 UTC (rev 34823)
@@ -915,7 +915,7 @@
 	RNA_def_property_ui_range(prop, -10.f, 10.f, 0.1f, 2);
 	RNA_def_property_update(prop, NC_NODE|NA_EDITED, "rna_Node_mapping_update");
 	
-	prop= RNA_def_property(srna, "rotation", PROP_FLOAT, PROP_EULER);
+	prop= RNA_def_property(srna, "rotation", PROP_FLOAT, PROP_XYZ); /* Not PROP_EUL, this is already in degrees, not radians */
 	RNA_def_property_float_sdna(prop, NULL, "rot");
 	RNA_def_property_ui_text(prop, "Rotation", "Rotation offset for the input coordinate");
 	RNA_def_property_ui_range(prop, -360.f, 360.f, 1.f, 2);




More information about the Bf-blender-cvs mailing list