mirror of
https://github.com/godotengine/godot.git
synced 2025-10-24 18:33:36 +00:00
Disable signal callback generation in C#
This commit is contained in:
parent
d3352813ea
commit
9fa2355cef
10 changed files with 50 additions and 18 deletions
|
|
@ -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++) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue