1
0
mirror of https://github.com/godotengine/godot.git synced 2025-12-03 16:55:53 +00:00

Optimize scene tree groups

This commit is contained in:
dementive
2025-07-10 22:09:56 -05:00
parent c6d130abd9
commit 56fa8caef4
8 changed files with 35 additions and 43 deletions

View File

@@ -226,8 +226,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(SceneStringName(shader_overrides_group_active), &nodes);
Vector<Node *> nodes = get_tree()->get_nodes_in_group(SceneStringName(shader_overrides_group_active));
if (nodes.is_empty()) {
//good we are the only override, enable all
active = true;