mirror of
https://github.com/tiennm99/godot.git
synced 2026-08-14 20:23:44 +00:00
Merge pull request #40461 from nekomatata/script-editor-init-optimization-3.2
[3.2] Optimized ScriptEditor initialization when many scripts are loaded
This commit is contained in:
@@ -2413,7 +2413,8 @@ RES VisualScriptEditor::get_edited_resource() const {
|
||||
}
|
||||
|
||||
void VisualScriptEditor::set_edited_resource(const RES &p_res) {
|
||||
|
||||
ERR_FAIL_COND(script.is_valid());
|
||||
ERR_FAIL_COND(p_res.is_null());
|
||||
script = p_res;
|
||||
signal_editor->script = script;
|
||||
signal_editor->undo_redo = undo_redo;
|
||||
@@ -2434,6 +2435,9 @@ void VisualScriptEditor::set_edited_resource(const RES &p_res) {
|
||||
_update_members();
|
||||
}
|
||||
|
||||
void VisualScriptEditor::enable_editor() {
|
||||
}
|
||||
|
||||
Vector<String> VisualScriptEditor::get_functions() {
|
||||
|
||||
return Vector<String>();
|
||||
|
||||
@@ -296,6 +296,7 @@ public:
|
||||
virtual void apply_code();
|
||||
virtual RES get_edited_resource() const;
|
||||
virtual void set_edited_resource(const RES &p_res);
|
||||
virtual void enable_editor();
|
||||
virtual Vector<String> get_functions();
|
||||
virtual void reload_text();
|
||||
virtual String get_name();
|
||||
|
||||
Reference in New Issue
Block a user