From f9c7b1fcffc28e515aa6ebb0c5271feef8829655 Mon Sep 17 00:00:00 2001 From: Aaron Franke Date: Tue, 18 Mar 2025 13:15:39 -0700 Subject: [PATCH] Change root node transform warning to only show up for position --- editor/gui/scene_tree_editor.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/editor/gui/scene_tree_editor.cpp b/editor/gui/scene_tree_editor.cpp index f4c91262c4..ffc432896a 100644 --- a/editor/gui/scene_tree_editor.cpp +++ b/editor/gui/scene_tree_editor.cpp @@ -63,13 +63,13 @@ PackedStringArray SceneTreeEditor::_get_node_configuration_warnings(Node *p_node if (node_2d) { // Note: Warn for Node2D but not all CanvasItems, don't warn for Control nodes. // Control nodes may have reasons to use a transformed root node like anchors. - if (!node_2d->get_transform().is_equal_approx(Transform2D())) { + if (!node_2d->get_position().is_zero_approx()) { warnings.append(TTR("The root node of a scene is recommended to not be transformed, since instances of the scene will usually override this. Reset the transform and reload the scene to remove this warning.")); } } Node3D *node_3d = Object::cast_to(p_node); if (node_3d) { - if (!node_3d->get_transform().is_equal_approx(Transform3D())) { + if (!node_3d->get_position().is_zero_approx()) { warnings.append(TTR("The root node of a scene is recommended to not be transformed, since instances of the scene will usually override this. Reset the transform and reload the scene to remove this warning.")); } }