summaryrefslogtreecommitdiff
path: root/editor
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2018-12-31 11:14:39 +0100
committerGitHub <noreply@github.com>2018-12-31 11:14:39 +0100
commit89560c2138d00c6b64f09dda97a18cb84ab76aff (patch)
treea2f47b7977ae931de54cae91dbb848f674652dab /editor
parent6d05ace735f70b545a5e7f9a5078b06c4ea5828b (diff)
parentb26d2ac19092dbe6d99eb43d08d19be405bf47c9 (diff)
Merge pull request #24679 from Chaosus/fix_not_found1
Fix "Method not found" error message when script is removed from object
Diffstat (limited to 'editor')
-rw-r--r--editor/editor_node.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/editor/editor_node.cpp b/editor/editor_node.cpp
index f035e5a8a1..01b11aef53 100644
--- a/editor/editor_node.cpp
+++ b/editor/editor_node.cpp
@@ -4654,6 +4654,8 @@ void EditorNode::_bind_methods() {
ClassDB::bind_method("edit_node", &EditorNode::edit_node);
ClassDB::bind_method("_unhandled_input", &EditorNode::_unhandled_input);
+ ClassDB::bind_method(D_METHOD("push_item", "object", "property", "inspector_only"), &EditorNode::push_item, DEFVAL(""), DEFVAL(false));
+
ClassDB::bind_method("_get_scene_metadata", &EditorNode::_get_scene_metadata);
ClassDB::bind_method("set_edited_scene", &EditorNode::set_edited_scene);
ClassDB::bind_method("open_request", &EditorNode::open_request);