Fix T54378: Drivers fail with property from empty

Empties were missing Parameters component.
This commit is contained in:
Sergey Sharybin 2018-03-21 12:17:51 +01:00
parent d03223850e
commit 1e43665a39
Notes: blender-bot 2023-02-14 06:05:30 +01:00
Referenced by issue #54378, New Depsgraph - Drivers fail when taking pass index of another object as a driver
1 changed files with 5 additions and 11 deletions

View File

@ -358,6 +358,11 @@ void DepsgraphNodeBuilder::build_object(Base *base, Object *object)
* on object's level animation, for example in case of rebuilding
* pose for proxy.
*/
OperationDepsNode *op_node = add_operation_node(&object->id,
DEG_NODE_TYPE_PARAMETERS,
NULL,
DEG_OPCODE_PARAMETERS_EVAL);
op_node->set_as_exit();
build_animdata(&object->id);
/* Particle systems. */
if (object->particlesystem.first != NULL) {
@ -745,17 +750,6 @@ void DepsgraphNodeBuilder::build_obdata_geom(Object *object)
ID *obdata = (ID *)object->data;
OperationDepsNode *op_node;
/* TODO(sergey): This way using this object's properties as driver target
* works fine.
*
* Does this depend on other nodes?
*/
op_node = add_operation_node(&object->id,
DEG_NODE_TYPE_PARAMETERS,
NULL,
DEG_OPCODE_PARAMETERS_EVAL);
op_node->set_as_exit();
/* Temporary uber-update node, which does everything.
* It is for the being we're porting old dependencies into the new system.
* We'll get rid of this node as soon as all the granular update functions