diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2023-12-04 23:12:24 +0100 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2023-12-04 23:12:24 +0100 |
commit | 3e7cc5ec32b9dc55a8f55300c0b3faf7b655448c (patch) | |
tree | b961a251132136584661a2f1374f4ae6937fd508 /editor/plugins/script_text_editor.cpp | |
parent | c7137673d3fbf19c98b7a801dd8866c2fc04d795 (diff) | |
parent | bc1949d7978c428ae3579e240368e20022ee77cd (diff) | |
download | redot-engine-3e7cc5ec32b9dc55a8f55300c0b3faf7b655448c.tar.gz |
Merge pull request #85271 from YuriSizov/core-check-please!
Correctly check scripts that must inherit `EditorPlugin`
Diffstat (limited to 'editor/plugins/script_text_editor.cpp')
-rw-r--r-- | editor/plugins/script_text_editor.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/plugins/script_text_editor.cpp b/editor/plugins/script_text_editor.cpp index 9ed997dca7..04eda502d2 100644 --- a/editor/plugins/script_text_editor.cpp +++ b/editor/plugins/script_text_editor.cpp @@ -1650,7 +1650,7 @@ void ScriptTextEditor::reload(bool p_soft) { return; } scr->set_source_code(te->get_text()); - bool soft = p_soft || scr->get_instance_base_type() == "EditorPlugin"; // Always soft-reload editor plugins. + bool soft = p_soft || ClassDB::is_parent_class(scr->get_instance_base_type(), "EditorPlugin"); // Always soft-reload editor plugins. scr->get_language()->reload_tool_script(scr, soft); } |