Fix wrong default color for new images in some cases.
authorBrecht Van Lommel <brechtvanlommel@pandora.be>
Fri, 23 Jul 2010 14:35:23 +0000 (14:35 +0000)
committerBrecht Van Lommel <brechtvanlommel@pandora.be>
Fri, 23 Jul 2010 14:35:23 +0000 (14:35 +0000)
source/blender/editors/space_image/image_ops.c

index 501d1ddc18105ff8c375d9bacc934aba280e2f47..d6ffcf243cfa32c7ca659f5d7180da281843bc7c 100644 (file)
@@ -1245,7 +1245,7 @@ static int new_exec(bContext *C, wmOperator *op)
 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";