[Bf-blender-cvs] [f7163a7d0af] master: Fix T52741: Follow track with depth object crashes Blender with new depsgraph

Sergey Sharybin noreply at git.blender.org
Thu Sep 14 09:32:36 CEST 2017


Commit: f7163a7d0af35a7d623125bf782403758769bae4
Author: Sergey Sharybin
Date:   Thu Sep 14 12:31:54 2017 +0500
Branches: master
https://developer.blender.org/rBf7163a7d0af35a7d623125bf782403758769bae4

Fix T52741: Follow track with depth object crashes Blender with new depsgraph

===================================================================

M	source/blender/depsgraph/intern/builder/deg_builder_relations.cc

===================================================================

diff --git a/source/blender/depsgraph/intern/builder/deg_builder_relations.cc b/source/blender/depsgraph/intern/builder/deg_builder_relations.cc
index ce5ecf79948..e9d7b33de6b 100644
--- a/source/blender/depsgraph/intern/builder/deg_builder_relations.cc
+++ b/source/blender/depsgraph/intern/builder/deg_builder_relations.cc
@@ -701,8 +701,12 @@ void DepsgraphRelationBuilder::build_constraints(Scene *scene, ID *id,
 					depends_on_camera = true;
 				}
 				if (data->depth_ob) {
-					ComponentKey depth_key(&data->depth_ob->id, DEG_NODE_TYPE_TRANSFORM);
-					add_relation(depth_key, constraint_op_key, cti->name);
+					ComponentKey depth_transform_key(&data->depth_ob->id,
+					                                 DEG_NODE_TYPE_TRANSFORM);
+					ComponentKey depth_geometry_key(&data->depth_ob->id,
+					                                DEG_NODE_TYPE_GEOMETRY);
+					add_relation(depth_transform_key, constraint_op_key, cti->name);
+					add_relation(depth_geometry_key, constraint_op_key, cti->name);
 				}
 			}
 			else if (cti->type == CONSTRAINT_TYPE_OBJECTSOLVER) {



More information about the Bf-blender-cvs mailing list