summaryrefslogtreecommitdiffstats
path: root/editor/plugins/script_editor_plugin.cpp
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2023-08-17 11:27:04 +0200
committerRémi Verschelde <rverschelde@gmail.com>2023-08-17 11:27:04 +0200
commitc7356c795b3c8cec2453061299e85cb315a9a6a7 (patch)
treebf4cbf58ac83b438d4492b2ea444eb203937dfbc /editor/plugins/script_editor_plugin.cpp
parent04306777a7c75d49bfb47f484cda29ef939a92b7 (diff)
parentfec0396cacc29907fdd6d8a1eb05dec1a177123d (diff)
downloadredot-engine-c7356c795b3c8cec2453061299e85cb315a9a6a7.tar.gz
Merge pull request #80647 from jsjtxietian/CollisionShape3D-Shape-Size-handles-missing-when-Script-editor-floating
Fix 2D/3D viewport context switching issues when script editor is 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) {