[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [40036] trunk/blender/source/blender/ makesrna/intern/rna_userdef.c: Fix #28545: User Preferences - System Tab - Reset All To Default Values on OpenGL Lights
Sergey Sharybin
g.ulairi at gmail.com
Thu Sep 8 11:46:32 CEST 2011
Revision: 40036
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=40036
Author: nazgul
Date: 2011-09-08 09:46:31 +0000 (Thu, 08 Sep 2011)
Log Message:
-----------
Fix #28545: User Preferences - System Tab - Reset All To Default Values on OpenGL Lights
Added default direction to light.
Modified Paths:
--------------
trunk/blender/source/blender/makesrna/intern/rna_userdef.c
Modified: trunk/blender/source/blender/makesrna/intern/rna_userdef.c
===================================================================
--- trunk/blender/source/blender/makesrna/intern/rna_userdef.c 2011-09-08 08:29:49 UTC (rev 40035)
+++ trunk/blender/source/blender/makesrna/intern/rna_userdef.c 2011-09-08 09:46:31 UTC (rev 40036)
@@ -1959,6 +1959,7 @@
{
StructRNA *srna;
PropertyRNA *prop;
+ static float default_dir[3] = {0.f, 1.f, 0.f};
srna= RNA_def_struct(brna, "UserSolidLight", NULL);
RNA_def_struct_sdna(srna, "SolidLight");
@@ -1972,6 +1973,7 @@
prop= RNA_def_property(srna, "direction", PROP_FLOAT, PROP_DIRECTION);
RNA_def_property_float_sdna(prop, NULL, "vec");
RNA_def_property_array(prop, 3);
+ RNA_def_property_float_array_default(prop, default_dir);
RNA_def_property_ui_text(prop, "Direction", "The direction that the OpenGL light is shining");
RNA_def_property_update(prop, 0, "rna_UserDef_viewport_lights_update");
More information about the Bf-blender-cvs
mailing list