mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
fixed wrong ifdef enclosed block
This commit is contained in:
parent
cb905fa957
commit
128e98c124
1 changed files with 1 additions and 1 deletions
|
|
@ -436,10 +436,10 @@ void Window::set_visible(bool p_visible) {
|
||||||
if (exclusive && visible) {
|
if (exclusive && visible) {
|
||||||
#ifdef TOOLS_ENABLED
|
#ifdef TOOLS_ENABLED
|
||||||
if (!(Engine::get_singleton()->is_editor_hint() && get_tree()->get_edited_scene_root() && get_tree()->get_edited_scene_root()->is_ancestor_of(this))) {
|
if (!(Engine::get_singleton()->is_editor_hint() && get_tree()->get_edited_scene_root() && get_tree()->get_edited_scene_root()->is_ancestor_of(this))) {
|
||||||
#endif
|
|
||||||
ERR_FAIL_COND_MSG(transient_parent->exclusive_child && transient_parent->exclusive_child != this, "Transient parent has another exclusive child.");
|
ERR_FAIL_COND_MSG(transient_parent->exclusive_child && transient_parent->exclusive_child != this, "Transient parent has another exclusive child.");
|
||||||
transient_parent->exclusive_child = this;
|
transient_parent->exclusive_child = this;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
} else {
|
} else {
|
||||||
if (transient_parent->exclusive_child == this) {
|
if (transient_parent->exclusive_child == this) {
|
||||||
transient_parent->exclusive_child = nullptr;
|
transient_parent->exclusive_child = nullptr;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue