Revision: 29636
          
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=29636
Author:   broken
Date:     2010-06-23 05:42:19 +0200 (Wed, 23 Jun 2010)

Log Message:
-----------
Change to file output compositor node - 
Now it only outputs files when rendering, otherwise, it overwrites the output 
files
whenever the compositor updates (i.e. just scrubbing through the timeline )

Modified Paths:
--------------
    trunk/blender/source/blender/nodes/intern/CMP_nodes/CMP_outputFile.c

Modified: trunk/blender/source/blender/nodes/intern/CMP_nodes/CMP_outputFile.c
===================================================================
--- trunk/blender/source/blender/nodes/intern/CMP_nodes/CMP_outputFile.c        
2010-06-23 03:20:57 UTC (rev 29635)
+++ trunk/blender/source/blender/nodes/intern/CMP_nodes/CMP_outputFile.c        
2010-06-23 03:42:19 UTC (rev 29636)
@@ -47,7 +47,12 @@
                if(nif->sfra!=nif->efra && (rd->cfra<nif->sfra || 
rd->cfra>nif->efra)) {
                        return; /* BAIL OUT RETURN */
                }
-               else {
+               else if (!G.rendering) {
+                       /* only output files when rendering a sequence -
+                        * otherwise, it overwrites the output files just 
+                        * scrubbing through the timeline when the compositor 
updates */
+                       return;
+               } else {
                        CompBuf *cbuf= typecheck_compbuf(in[0]->data, CB_RGBA);
                        ImBuf *ibuf= IMB_allocImBuf(cbuf->x, cbuf->y, 32, 0, 0);
                        char string[256];


_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to