Fix T52741: Follow track with depth object crashes Blender with new depsgraph
This commit is contained in:
parent
c8f95c7829
commit
d5dbe0c566
|
@ -687,9 +687,12 @@ void DepsgraphRelationBuilder::build_constraints(Scene *scene, ID *id, eDepsNode
|
|||
depends_on_camera = true;
|
||||
|
||||
if (data->depth_ob) {
|
||||
// DAG_RL_DATA_OB | DAG_RL_OB_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) {
|
||||
|
|
Loading…
Reference in New Issue