Fix T89397: animation in geometry nodes modifier does not update
The geometry nodes modifier uses id properties for the inputs to node groups. That is because the set of properties changes depending on which geometry node group is selected. The animation was not updated correctly because the `ANIMATION_EVAL` depsgraph node was not evaluated, because nothing depended on it in the depsgraph. This patch makes sure that the proper link to the geometry component is inserted. Differential Revision: https://developer.blender.org/D11831
This commit is contained in:
parent
3fe0088cab
commit
77834aff22
Notes:
blender-bot
2023-02-14 06:17:14 +01:00
Referenced by issue #89397, The geometry nodes aren't updating the animation render. Everything else is.
|
@ -180,7 +180,8 @@ RNANodeIdentifier RNANodeQuery::construct_node_identifier(const PointerRNA *ptr,
|
|||
node_identifier.operation_name = "";
|
||||
node_identifier.operation_name_tag = -1;
|
||||
/* Handling of commonly known scenarios. */
|
||||
if (prop != nullptr && RNA_property_is_idprop(prop)) {
|
||||
if (prop != nullptr && RNA_property_is_idprop(prop) &&
|
||||
!RNA_struct_is_a(ptr->type, &RNA_Modifier)) {
|
||||
node_identifier.type = NodeType::PARAMETERS;
|
||||
node_identifier.operation_code = OperationCode::ID_PROPERTY;
|
||||
node_identifier.operation_name = RNA_property_identifier(
|
||||
|
|
Loading…
Reference in New Issue