Skip to content

Commit b6b3ec5

Browse files
authored
Merge pull request #99870 from arkology/3.x_texture-progress-cross-plugin-friendly
[3.x] Show `TextureProgress` radial center cross only when editing the scene
2 parents caf918f + 002d604 commit b6b3ec5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scene/gui/texture_progress.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -511,7 +511,7 @@ void TextureProgress::_notification(int p_what) {
511511
}
512512

513513
// Draw a reference cross.
514-
if (Engine::get_singleton()->is_editor_hint()) {
514+
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)) {
515515
Point2 p;
516516

517517
if (nine_patch_stretch) {

0 commit comments

Comments
 (0)