diff options
| author | Poommetee Ketson | 2017-07-22 17:11:42 +0700 |
|---|---|---|
| committer | Poommetee Ketson | 2017-07-23 18:57:03 +0700 |
| commit | 2777f81d290e4b9a17afedc100a5b83666e04495 (patch) | |
| tree | c6e707708590537ae80566649a318d17c1a8bbb8 /core/resource.cpp | |
| parent | 0ed59fdf12a8c8b385163c70ace0cd659867c9b1 (diff) | |
| download | godot-2777f81d290e4b9a17afedc100a5b83666e04495.tar.gz godot-2777f81d290e4b9a17afedc100a5b83666e04495.tar.zst godot-2777f81d290e4b9a17afedc100a5b83666e04495.zip | |
Diffstat (limited to 'core/resource.cpp')
| -rw-r--r-- | core/resource.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/core/resource.cpp b/core/resource.cpp index a7a5498ef..562578439 100644 --- a/core/resource.cpp +++ b/core/resource.cpp @@ -31,7 +31,6 @@ #include "core_string_names.h" #include "io/resource_loader.h" -#include "io/resource_loader.h" #include "os/file_access.h" #include "script_language.h" #include <stdio.h> @@ -340,7 +339,7 @@ void Resource::_bind_methods() { ClassDB::bind_method(D_METHOD("get_local_scene:Node"), &Resource::get_local_scene); ClassDB::bind_method(D_METHOD("setup_local_to_scene"), &Resource::setup_local_to_scene); - ClassDB::bind_method(D_METHOD("duplicate", "subresources"), &Resource::duplicate, DEFVAL(false)); + ClassDB::bind_method(D_METHOD("duplicate:Resource", "subresources"), &Resource::duplicate, DEFVAL(false)); ADD_SIGNAL(MethodInfo("changed")); ADD_GROUP("Resource", "resource_"); ADD_PROPERTYNZ(PropertyInfo(Variant::BOOL, "resource_local_to_scene"), "set_local_to_scene", "is_local_to_scene"); |
