You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-15 13:51:40 +00:00
Correctly check scripts that must inherit EditorPlugin
Also updates some error messages related to this kind of check
across the codebase.
(cherry picked from commit bc1949d797)
This commit is contained in:
committed by
Rémi Verschelde
parent
a207e53def
commit
4564a8513a
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user