Blender Git Commit Log

Git Commits -> Revision 7d9a5b7

Revision 7d9a5b7 by Sybren A. Stüvel (master)
March 6, 2020, 10:05 (GMT)
Fix T73254: Drivers with the object.dimension variable are not updated

This fixes an issue where drivers using `object.dimension` only add a dependency on `GEOMETRY` to the depsgraph, whereas they should also depend on `TRANSFORM`.

This patch adds a new no-op operation that depends on the geometry and transform components to the Parameters component.

An alternative implementation would be to have `RNANodeQuery::construct_node_identifier` return multiple node identifiers. However, this would spread throughout the depsgraph code and unnecessarily force many other functions to either return or handle multiple nodes where in 99.999% of the time a single node would suffice.

The new `DIMENSIONS` node is added for each object. An upcoming patch will go over all no-op operation nodes and remove them from the depsgraph. Since this is a more dangerous operation, it'll be reviewed separately.

Differential Revision: https://developer.blender.org/D7031

Commit Details:

Full Hash: 7d9a5b7b10b439f62bcc522fee307a942b859ccc
Parent Commit: abd33a3
Lines Changed: +24, -1

7 Modified Paths:

/source/blender/depsgraph/intern/builder/deg_builder_nodes.cc (+7, -0) (Diff)
/source/blender/depsgraph/intern/builder/deg_builder_nodes.h (+1, -0) (Diff)
/source/blender/depsgraph/intern/builder/deg_builder_relations.cc (+10, -0) (Diff)
/source/blender/depsgraph/intern/builder/deg_builder_relations.h (+1, -0) (Diff)
/source/blender/depsgraph/intern/builder/deg_builder_rna.cc (+2, -1) (Diff)
/source/blender/depsgraph/intern/node/deg_node_operation.cc (+2, -0) (Diff)
/source/blender/depsgraph/intern/node/deg_node_operation.h (+1, -0) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021