[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [28620] trunk/blender/source/blender/ editors/space_image/image_ops.c: make save as copy default for renders, so artists saving with F3 dont end up with many image datablocks pointing to their Desktops

Campbell Barton ideasman42 at gmail.com
Thu May 6 18:37:39 CEST 2010


Revision: 28620
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=28620
Author:   campbellbarton
Date:     2010-05-06 18:37:39 +0200 (Thu, 06 May 2010)

Log Message:
-----------
make save as copy default for renders, so artists saving with F3 dont end up with many image datablocks pointing to their Desktops

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-05-06 16:06:57 UTC (rev 28619)
+++ trunk/blender/source/blender/editors/space_image/image_ops.c	2010-05-06 16:37:39 UTC (rev 28620)
@@ -964,7 +964,12 @@
 		
 		if(ibuf->name[0]==0)
 			BLI_strncpy(ibuf->name, G.ima, FILE_MAX);
-		
+
+		/* enable save_copy by default for render results */
+		if(ELEM(ima->type, IMA_TYPE_R_RESULT, IMA_TYPE_COMPOSITE) && !RNA_property_is_set(op->ptr, "copy")) {
+			RNA_boolean_set(op->ptr, "copy", TRUE);
+		}
+
 		// XXX note: we can give default menu enums to operator for this 
 		image_filesel(C, op, ibuf->name);
 





More information about the Bf-blender-cvs mailing list