Fix #137407: Action properties not usable as driver variable
Add a `PARAMETERS` dependency graph component to Action data-blocks. This is necessary for drivers to use an Action property as a variable. Pull Request: https://projects.blender.org/blender/blender/pulls/138495
This commit is contained in:
@@ -1305,6 +1305,10 @@ void DepsgraphNodeBuilder::build_action(bAction *action)
|
||||
if (built_map_.check_is_built_and_tag(action)) {
|
||||
return;
|
||||
}
|
||||
|
||||
/* To make it possible to use animation data as a variable for drivers: */
|
||||
build_parameters(&action->id);
|
||||
|
||||
build_idproperties(action->id.properties);
|
||||
add_operation_node(&action->id, NodeType::ANIMATION, OperationCode::ANIMATION_EVAL);
|
||||
}
|
||||
|
||||
@@ -1845,6 +1845,7 @@ void DepsgraphRelationBuilder::build_action(bAction *dna_action)
|
||||
|
||||
const BuilderStack::ScopedEntry stack_entry = stack_.trace(dna_action->id);
|
||||
|
||||
build_parameters(&dna_action->id);
|
||||
build_idproperties(dna_action->id.properties);
|
||||
|
||||
blender::animrig::Action &action = dna_action->wrap();
|
||||
|
||||
Reference in New Issue
Block a user