diff options
author | Andrii Doroshenko (Xrayez) <xrayez@gmail.com> | 2021-01-13 16:24:51 +0200 |
---|---|---|
committer | Andrii Doroshenko (Xrayez) <xrayez@gmail.com> | 2021-01-13 16:27:58 +0200 |
commit | e94f46dcdb75f4a2b14c360e843c8bc58b8fb0e4 (patch) | |
tree | 3d7166486ebdbab55b147ef0d929e72310e9ccbe /core/io/resource.cpp | |
parent | a8cf045fd0c17dab73f648d0815d22677a252c77 (diff) | |
download | redot-engine-e94f46dcdb75f4a2b14c360e843c8bc58b8fb0e4.tar.gz |
Expose `Resource.emit_changed()` to script
Also known as `emit_signal("changed")`.
Diffstat (limited to 'core/io/resource.cpp')
-rw-r--r-- | core/io/resource.cpp | 1 |
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")); |