diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2022-09-20 08:42:30 +0200 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2022-09-20 08:42:30 +0200 |
commit | 4cdb16a60c3314e5e276069c9f41a9bb6570d850 (patch) | |
tree | f07ed684298c18ec8fac5e4529d1c21801c11727 /modules/gltf/gltf_document_extension.cpp | |
parent | 7bb1af84f68ea5f92423a4c5f79033f2a3547460 (diff) | |
parent | 7097e8add71c8ddaf4ff1cc92d84d0266626a528 (diff) | |
download | redot-engine-4cdb16a60c3314e5e276069c9f41a9bb6570d850.tar.gz |
Merge pull request #66094 from aaronfranke/gltf-used-extensions
Store extensions in GLTFState and get supported extensions from GLTFDocumentExtension
Diffstat (limited to 'modules/gltf/gltf_document_extension.cpp')
-rw-r--r-- | modules/gltf/gltf_document_extension.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/modules/gltf/gltf_document_extension.cpp b/modules/gltf/gltf_document_extension.cpp index d0bd7651e0..3b952f8246 100644 --- a/modules/gltf/gltf_document_extension.cpp +++ b/modules/gltf/gltf_document_extension.cpp @@ -31,6 +31,7 @@ #include "gltf_document_extension.h" void GLTFDocumentExtension::_bind_methods() { + GDVIRTUAL_BIND(_get_supported_extensions); GDVIRTUAL_BIND(_import_preflight, "state"); GDVIRTUAL_BIND(_import_post_parse, "state"); GDVIRTUAL_BIND(_import_node, "state", "gltf_node", "json", "node"); @@ -40,6 +41,12 @@ void GLTFDocumentExtension::_bind_methods() { GDVIRTUAL_BIND(_export_post, "state"); } +Vector<String> GLTFDocumentExtension::get_supported_extensions() { + Vector<String> ret; + GDVIRTUAL_CALL(_get_supported_extensions, ret); + return ret; +} + Error GLTFDocumentExtension::import_post(Ref<GLTFState> p_state, Node *p_root) { ERR_FAIL_NULL_V(p_root, ERR_INVALID_PARAMETER); ERR_FAIL_NULL_V(p_state, ERR_INVALID_PARAMETER); |