[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [60818] trunk/blender/source/blender/ makesrna/intern/rna_nodetree.c: Fix #37091: Reset to default of Sky Texture 's Dot freezes it at 0, 0, 0

Sergey Sharybin sergey.vfx at gmail.com
Thu Oct 17 12:50:55 CEST 2013


Revision: 60818
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=60818
Author:   nazgul
Date:     2013-10-17 10:50:54 +0000 (Thu, 17 Oct 2013)
Log Message:
-----------
Fix #37091: Reset to default of Sky Texture's Dot freezes it at 0,0,0

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	2013-10-17 10:42:47 UTC (rev 60817)
+++ trunk/blender/source/blender/makesrna/intern/rna_nodetree.c	2013-10-17 10:50:54 UTC (rev 60818)
@@ -3256,6 +3256,7 @@
 		{SHD_SKY_NEW, "HOSEK_WILKIE", 0, "Hosek / Wilkie", ""},
 		{0, NULL, 0, NULL, NULL}
 	};
+	static float default_dir[3] = {0.0f, 0.0f, 1.0f};
 	
 	PropertyRNA *prop;
 	
@@ -3270,6 +3271,8 @@
 	
 	prop = RNA_def_property(srna, "sun_direction", PROP_FLOAT, PROP_DIRECTION);
 	RNA_def_property_ui_text(prop, "Sun Direction", "Direction from where the sun is shining");
+	RNA_def_property_array(prop, 3);
+	RNA_def_property_float_array_default(prop, default_dir);
 	RNA_def_property_update(prop, NC_NODE | NA_EDITED, "rna_Node_update");
 	
 	prop = RNA_def_property(srna, "turbidity", PROP_FLOAT, PROP_NONE);




More information about the Bf-blender-cvs mailing list