[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [38821] branches/soc-2011-tomato/source/ blender/blenkernel/intern/depsgraph.c: Camera tracking integration

Sergey Sharybin g.ulairi at gmail.com
Fri Jul 29 17:47:10 CEST 2011


Revision: 38821
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=38821
Author:   nazgul
Date:     2011-07-29 15:47:09 +0000 (Fri, 29 Jul 2011)
Log Message:
-----------
Camera tracking integration
===========================

Fixed segfault when turning stabilization on when there's
no compositing tree.

Modified Paths:
--------------
    branches/soc-2011-tomato/source/blender/blenkernel/intern/depsgraph.c

Modified: branches/soc-2011-tomato/source/blender/blenkernel/intern/depsgraph.c
===================================================================
--- branches/soc-2011-tomato/source/blender/blenkernel/intern/depsgraph.c	2011-07-29 15:25:00 UTC (rev 38820)
+++ branches/soc-2011-tomato/source/blender/blenkernel/intern/depsgraph.c	2011-07-29 15:47:09 UTC (rev 38821)
@@ -2482,8 +2482,6 @@
 		}
 
 		if(idtype == ID_MC) {
-			bNode *node;
-
 			for(obt=bmain->object.first; obt; obt= obt->id.next){
 				bConstraint *con;
 				for (con = obt->constraints.first; con; con=con->next) {
@@ -2495,9 +2493,13 @@
 				}
 			}
 
-			for(node= sce->nodetree->nodes.first; node; node= node->next) {
-				if(node->id==id) {
-					NodeTagChanged(sce->nodetree, node);
+			if(sce->nodetree) {
+				bNode *node;
+
+				for(node= sce->nodetree->nodes.first; node; node= node->next) {
+					if(node->id==id) {
+						NodeTagChanged(sce->nodetree, node);
+					}
 				}
 			}
 		}




More information about the Bf-blender-cvs mailing list