Skip to content

Commit

Permalink
Show TextureProgress radial cross only when editing the scene
Browse files Browse the repository at this point in the history
  • Loading branch information
arkology committed Nov 30, 2024
1 parent 36a0185 commit 002d604
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scene/gui/texture_progress.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -510,7 +510,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) {
Expand Down

0 comments on commit 002d604

Please sign in to comment.