[Bf-blender-cvs] [21c00cb] blender-v2.76-release: Fix T46227: ShapeKeys Lattice by the driver, problem updates in new depsgraph
Sergey Sharybin
noreply at git.blender.org
Wed Sep 30 17:10:25 CEST 2015
Commit: 21c00cbd0e9a1d70e3efaa990907c9cf6acc4fcf
Author: Sergey Sharybin
Date: Thu Sep 24 13:13:00 2015 +0500
Branches: blender-v2.76-release
https://developer.blender.org/rB21c00cbd0e9a1d70e3efaa990907c9cf6acc4fcf
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.
===================================================================
M source/blender/depsgraph/intern/depsgraph_build_relations.cc
===================================================================
diff --git a/source/blender/depsgraph/intern/depsgraph_build_relations.cc b/source/blender/depsgraph/intern/depsgraph_build_relations.cc
index 649105a..c348ada 100644
--- a/source/blender/depsgraph/intern/depsgraph_build_relations.cc
+++ b/source/blender/depsgraph/intern/depsgraph_build_relations.cc
@@ -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... */
More information about the Bf-blender-cvs
mailing list