From afc36d9a0e4e8dece6f7ee968680075b3602075d Mon Sep 17 00:00:00 2001 From: arkology <43543909+arkology@users.noreply.github.com> Date: Sat, 30 Nov 2024 12:30:10 +0300 Subject: [PATCH] Show TextureProgress radial cross only when editing the scene (cherry picked from commit 002d60465197384eecd1354eec594abed9c341b8) --- scene/gui/texture_progress.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scene/gui/texture_progress.cpp b/scene/gui/texture_progress.cpp index 8431a27e6d7..59c8a69795a 100644 --- a/scene/gui/texture_progress.cpp +++ b/scene/gui/texture_progress.cpp @@ -511,7 +511,7 @@ void TextureProgress::_notification(int p_what) { } // Draw a reference cross. - if (Engine::get_singleton()->is_editor_hint()) { + if (Engine::get_singleton()->is_editor_hint() && is_inside_tree() && get_tree()->get_edited_scene_root() && get_tree()->get_edited_scene_root()->get_parent()->is_a_parent_of(this)) { Point2 p; if (nine_patch_stretch) {