[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [52432] trunk/blender/source/blender/ compositor/nodes/COM_OutputFileNode.cpp: 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).

Lukas Toenne lukas.toenne at googlemail.com
Wed Nov 21 11:09:53 CET 2012


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;
 	}
 	




More information about the Bf-blender-cvs mailing list