Merge pull request #57925 from akien-mga/shaderglobalsoverride-out-of-tree

This commit is contained in:
Rémi Verschelde 2022-02-10 21:45:22 +01:00 committed by GitHub
commit 3bcd3ee10d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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) {