mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
Merge pull request #108507 from dementive/optimize-scene-tree-groups
Optimize scene tree groups
This commit is contained in:
commit
7d5034c50a
8 changed files with 35 additions and 43 deletions
|
|
@ -117,8 +117,7 @@ PackedStringArray CanvasModulate::get_configuration_warnings() const {
|
|||
PackedStringArray warnings = Node2D::get_configuration_warnings();
|
||||
|
||||
if (is_in_canvas && is_visible_in_tree()) {
|
||||
List<Node *> nodes;
|
||||
get_tree()->get_nodes_in_group("_canvas_modulate_" + itos(get_canvas().get_id()), &nodes);
|
||||
Vector<Node *> nodes = get_tree()->get_nodes_in_group("_canvas_modulate_" + itos(get_canvas().get_id()));
|
||||
|
||||
if (nodes.size() > 1) {
|
||||
warnings.push_back(RTR("Only one visible CanvasModulate is allowed per canvas.\nWhen there are more than one, only one of them will be active. Which one is undefined."));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue