Fix T46227: ShapeKeys Lattice by the driver, problem updates in new depsgraph
The issue was caused by driver referencing path outside of the key datablock.
This commit is contained in:
parent
eae90798b6
commit
21c00cbd0e
|
@ -812,6 +812,10 @@ void DepsgraphRelationBuilder::build_driver(ID *id, FCurve *fcu)
|
|||
ComponentKey geometry_key(shape_key->from, DEPSNODE_TYPE_GEOMETRY);
|
||||
add_relation(driver_key, geometry_key, DEPSREL_TYPE_DRIVER, "[Driver -> ShapeKey Geom]");
|
||||
}
|
||||
else if (strstr(fcu->rna_path, "key_blocks[")) {
|
||||
ComponentKey geometry_key(id, DEPSNODE_TYPE_GEOMETRY);
|
||||
add_relation(driver_key, geometry_key, DEPSREL_TYPE_DRIVER, "[Driver -> ShapeKey Geom]");
|
||||
}
|
||||
else {
|
||||
if (GS(id->name) == ID_OB) {
|
||||
/* assume that driver affects a transform... */
|
||||
|
|
Loading…
Reference in New Issue