summaryrefslogtreecommitdiff
path: root/core/io/resource.cpp
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2021-01-14 15:56:26 +0100
committerGitHub <noreply@github.com>2021-01-14 15:56:26 +0100
commit70a70a4f2be376a26536d3829e0236dad7b143f9 (patch)
tree7c8835ac89c661ab5c559461c34909351e20a94a /core/io/resource.cpp
parent2af5723aee3da89fb4a94f01cf0ac2ba9aa06c18 (diff)
parente94f46dcdb75f4a2b14c360e843c8bc58b8fb0e4 (diff)
Merge pull request #45161 from Xrayez/bind-emit-changed
Expose `Resource.emit_changed()` to script
Diffstat (limited to 'core/io/resource.cpp')
-rw-r--r--core/io/resource.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/io/resource.cpp b/core/io/resource.cpp
index 716da5e395..2c97e617f2 100644
--- a/core/io/resource.cpp
+++ b/core/io/resource.cpp
@@ -386,6 +386,7 @@ void Resource::_bind_methods() {
ClassDB::bind_method(D_METHOD("is_local_to_scene"), &Resource::is_local_to_scene);
ClassDB::bind_method(D_METHOD("get_local_scene"), &Resource::get_local_scene);
ClassDB::bind_method(D_METHOD("setup_local_to_scene"), &Resource::setup_local_to_scene);
+ ClassDB::bind_method(D_METHOD("emit_changed"), &Resource::emit_changed);
ClassDB::bind_method(D_METHOD("duplicate", "subresources"), &Resource::duplicate, DEFVAL(false));
ADD_SIGNAL(MethodInfo("changed"));