summaryrefslogtreecommitdiffstats
path: root/editor/plugins/script_editor_plugin.cpp
diff options
context:
space:
mode:
authorjsjtxietian <jsjtxietian@outlook.com>2023-08-15 12:40:32 +0800
committerjsjtxietian <jsjtxietian@outlook.com>2023-08-15 12:41:20 +0800
commitfec0396cacc29907fdd6d8a1eb05dec1a177123d (patch)
tree07a4a254c3ae2b582ec4b311410f8865e0b78612 /editor/plugins/script_editor_plugin.cpp
parentc495eb5102278a110c14bbffbf833ed436d1594d (diff)
downloadredot-engine-fec0396cacc29907fdd6d8a1eb05dec1a177123d.tar.gz
fix CollisionShape3D Shape Size handle will missing
when Script editor floating
Diffstat (limited to 'editor/plugins/script_editor_plugin.cpp')
-rw-r--r--editor/plugins/script_editor_plugin.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/editor/plugins/script_editor_plugin.cpp b/editor/plugins/script_editor_plugin.cpp
index 67df349e48..eb0e20a12e 100644
--- a/editor/plugins/script_editor_plugin.cpp
+++ b/editor/plugins/script_editor_plugin.cpp
@@ -1791,6 +1791,10 @@ void ScriptEditor::ensure_select_current() {
_update_selected_editor_menu();
}
+bool ScriptEditor::is_editor_floating() {
+ return is_floating;
+}
+
void ScriptEditor::_find_scripts(Node *p_base, Node *p_current, HashSet<Ref<Script>> &used) {
if (p_current != p_base && p_current->get_owner() != p_base) {
return;
@@ -3747,6 +3751,7 @@ void ScriptEditor::_on_find_in_files_modified_files(PackedStringArray paths) {
void ScriptEditor::_window_changed(bool p_visible) {
make_floating->set_visible(!p_visible);
+ is_floating = p_visible;
}
void ScriptEditor::_filter_scripts_text_changed(const String &p_newtext) {