You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-17 14:11:06 +00:00
Show TextureProgress radial cross only when editing the scene
(cherry picked from commit 002d604651)
This commit is contained in:
@@ -511,7 +511,7 @@ void TextureProgress::_notification(int p_what) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Draw a reference cross.
|
// 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;
|
Point2 p;
|
||||||
|
|
||||||
if (nine_patch_stretch) {
|
if (nine_patch_stretch) {
|
||||||
|
|||||||
Reference in New Issue
Block a user