1
0
Fork 0

Fix crash calling `_activate()` on ShaderGlobalsOverride out of tree

Fixes #45984.
This commit is contained in:
Rémi Verschelde 2022-02-10 18:22:20 +01:00
parent 11cefc2b28
commit 4be8f200f0
No known key found for this signature in database
GPG Key ID: C3336907360768E1
1 changed files with 1 additions and 0 deletions

View File

@ -221,6 +221,7 @@ void ShaderGlobalsOverride::_get_property_list(List<PropertyInfo> *p_list) const
}
void ShaderGlobalsOverride::_activate() {
ERR_FAIL_NULL(get_tree());
List<Node *> nodes;
get_tree()->get_nodes_in_group(SceneStringNames::get_singleton()->shader_overrides_group_active, &nodes);
if (nodes.size() == 0) {