diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2018-05-28 16:28:09 +0200 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2018-05-28 16:28:09 +0200 |
commit | c8a799d6918f2c5dbbf7084ef681fcd016c79d3d (patch) | |
tree | 0f5b546222e9c8ef6647b7cf67618b9de7e2e0d2 /editor | |
parent | fac0120521f1bf37dc7a8b86e67eb0754baee931 (diff) |
Fix MethodInfo for EditorInspectorPlugin.can_handle
Diffstat (limited to 'editor')
-rw-r--r-- | editor/editor_inspector.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/editor/editor_inspector.cpp b/editor/editor_inspector.cpp index f94b7cd6ee..531aa2f9dc 100644 --- a/editor/editor_inspector.cpp +++ b/editor/editor_inspector.cpp @@ -842,9 +842,11 @@ void EditorInspectorPlugin::_bind_methods() { MethodInfo vm; vm.name = "can_handle"; + vm.return_val.type = Variant::BOOL; vm.arguments.push_back(PropertyInfo(Variant::OBJECT, "object")); BIND_VMETHOD(vm); vm.name = "parse_begin"; + vm.return_val.type = Variant::NIL; BIND_VMETHOD(vm); vm.name = "parse_category"; vm.arguments.push_back(PropertyInfo(Variant::STRING, "category")); @@ -859,8 +861,8 @@ void EditorInspectorPlugin::_bind_methods() { vm.arguments.push_back(PropertyInfo(Variant::INT, "usage")); BIND_VMETHOD(vm); vm.arguments.clear(); - vm.return_val.type = Variant::NIL; vm.name = "parse_end"; + vm.return_val.type = Variant::NIL; BIND_VMETHOD(vm); } |