diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2024-02-15 15:44:55 +0100 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2024-02-15 15:44:55 +0100 |
commit | 09df8f4a560b69d44e676ec8ec1f6b8fd866cd5e (patch) | |
tree | d8613fcfe320e3b95af942bd8ebb59b25b812425 /editor/plugins/script_editor_plugin.cpp | |
parent | 17944bbb3a96ed8ef2a963aa0269d80cbcd40af0 (diff) | |
parent | 9fa2355ceffefe3991e16ef4c3957f433fadd881 (diff) | |
download | redot-engine-09df8f4a560b69d44e676ec8ec1f6b8fd866cd5e.tar.gz |
Merge pull request #87952 from paulloz/dotnet/byebye-signal-callback-generation
Disable signal callback generation in C#
Diffstat (limited to 'editor/plugins/script_editor_plugin.cpp')
-rw-r--r-- | editor/plugins/script_editor_plugin.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/editor/plugins/script_editor_plugin.cpp b/editor/plugins/script_editor_plugin.cpp index c8e65e98a7..335aa33c4a 100644 --- a/editor/plugins/script_editor_plugin.cpp +++ b/editor/plugins/script_editor_plugin.cpp @@ -2726,6 +2726,10 @@ void ScriptEditor::_add_callback(Object *p_obj, const String &p_function, const Ref<Script> scr = p_obj->get_script(); ERR_FAIL_COND(!scr.is_valid()); + if (!scr->get_language()->can_make_function()) { + return; + } + EditorNode::get_singleton()->push_item(scr.ptr()); for (int i = 0; i < tab_container->get_tab_count(); i++) { |