Fix: Node operators crash when using depsgraph

The scene time node and volume nodes crashed, since the despgraph
needs to be retrieved from the operator data instead of modifier data.
This commit is contained in:
Hans Goudey
2023-07-11 13:38:13 -04:00
parent 07fe6c5a57
commit f5ffdafea2

View File

@@ -217,6 +217,9 @@ class GeoNodeExecParams {
if (data->modifier_data) {
return data->modifier_data->depsgraph;
}
if (data->operator_data) {
return data->operator_data->depsgraph;
}
}
return nullptr;
}