Revision: 52432
          
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=52432
Author:   lukastoenne
Date:     2012-11-21 10:09:51 +0000 (Wed, 21 Nov 2012)
Log Message:
-----------
When the File Output node exits early in convertToOperations (in case not 
rendering), it should still unlink all inputs to avoid debug assert failure 
that checks for remaining Node connections (debug_check_node_connections).

Modified Paths:
--------------
    trunk/blender/source/blender/compositor/nodes/COM_OutputFileNode.cpp

Modified: trunk/blender/source/blender/compositor/nodes/COM_OutputFileNode.cpp
===================================================================
--- trunk/blender/source/blender/compositor/nodes/COM_OutputFileNode.cpp        
2012-11-21 09:58:44 UTC (rev 52431)
+++ trunk/blender/source/blender/compositor/nodes/COM_OutputFileNode.cpp        
2012-11-21 10:09:51 UTC (rev 52432)
@@ -41,6 +41,12 @@
                 * otherwise, it overwrites the output files just
                 * scrubbing through the timeline when the compositor updates.
                 */
+               
+               /* still, need to unlink input sockets to remove the node from 
the graph completely */
+               int num_inputs = getNumberOfInputSockets();
+               for (int i = 0; i < num_inputs; ++i) {
+                       getInputSocket(i)->unlinkConnections(graph);
+               }
                return;
        }
        

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

Reply via email to