소스 검색

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
lawnjelly 3 달 전
부모
커밋
b6b3ec546c
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) {