浏览代码

Show TextureProgress radial cross only when editing the scene

(cherry picked from commit 002d60465197384eecd1354eec594abed9c341b8)
arkology 9 月之前
父节点
当前提交
afc36d9a0e
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      scene/gui/texture_progress.cpp

+ 1 - 1
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) {