Fix error spam when inspecting remote nodes outside the tree

This commit is contained in:
Michael Alexsander
2025-04-04 19:22:32 -03:00
parent 27b2ba667c
commit e1e5242fa9

View File

@@ -1914,6 +1914,10 @@ void RuntimeNodeSelect::_update_selection() {
continue;
}
if (!ci->is_inside_tree()) {
continue;
}
Transform2D xform;
// Cameras (overridden or not) don't affect `CanvasLayer`s.
if (root->is_canvas_transform_override_enabled() && !(ci->get_canvas_layer_node() && !ci->get_canvas_layer_node()->is_following_viewport())) {
@@ -1962,6 +1966,10 @@ void RuntimeNodeSelect::_update_selection() {
continue;
}
if (!node_3d->is_inside_tree()) {
continue;
}
// Fallback.
AABB bounds(Vector3(-0.5, -0.5, -0.5), Vector3(1, 1, 1));