[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [30655] trunk/blender/source/blender/ editors/space_image/image_ops.c: Fix wrong default color for new images in some cases.

Brecht Van Lommel brecht at blender.org
Fri Jul 23 16:35:23 CEST 2010


Revision: 30655
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=30655
Author:   blendix
Date:     2010-07-23 16:35:23 +0200 (Fri, 23 Jul 2010)

Log Message:
-----------
Fix wrong default color for new images in some cases.

Modified Paths:
--------------
    trunk/blender/source/blender/editors/space_image/image_ops.c

Modified: trunk/blender/source/blender/editors/space_image/image_ops.c
===================================================================
--- trunk/blender/source/blender/editors/space_image/image_ops.c	2010-07-23 14:34:43 UTC (rev 30654)
+++ trunk/blender/source/blender/editors/space_image/image_ops.c	2010-07-23 14:35:23 UTC (rev 30655)
@@ -1245,7 +1245,7 @@
 void IMAGE_OT_new(wmOperatorType *ot)
 {
 	PropertyRNA *prop;
-	float default_color[4]= {0.0f, 0.0f, 0.0f, 1.0f};
+	static float default_color[4]= {0.0f, 0.0f, 0.0f, 1.0f};
 	
 	/* identifiers */
 	ot->name= "New";





More information about the Bf-blender-cvs mailing list