-forgot a check for tools enabled, closes #3166
This commit is contained in:
parent
7d2d1442f8
commit
974e5362bc
|
@ -48,9 +48,11 @@ void Popup::_notification(int p_what) {
|
||||||
|
|
||||||
if (p_what==NOTIFICATION_ENTER_TREE) {
|
if (p_what==NOTIFICATION_ENTER_TREE) {
|
||||||
//small helper to make editing of these easier in editor
|
//small helper to make editing of these easier in editor
|
||||||
|
#ifdef TOOLS_ENABLED
|
||||||
if (get_tree()->is_editor_hint() && get_tree()->get_edited_scene_root() && get_tree()->get_edited_scene_root()->is_a_parent_of(this)) {
|
if (get_tree()->is_editor_hint() && get_tree()->get_edited_scene_root() && get_tree()->get_edited_scene_root()->is_a_parent_of(this)) {
|
||||||
set_as_toplevel(false);
|
set_as_toplevel(false);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue