summaryrefslogtreecommitdiffstats
path: root/modules/gltf/gltf_document_extension.cpp
diff options
context:
space:
mode:
authorAaron Franke <arnfranke@yahoo.com>2022-09-18 20:35:13 -0500
committerAaron Franke <arnfranke@yahoo.com>2022-09-19 19:40:06 -0500
commit7097e8add71c8ddaf4ff1cc92d84d0266626a528 (patch)
treedc70566c27b40ea6f55204da573dcf6aa193a7ee /modules/gltf/gltf_document_extension.cpp
parentb72dc0de89eb11e7afdb3c2e3bae737bea40524f (diff)
downloadredot-engine-7097e8add71c8ddaf4ff1cc92d84d0266626a528.tar.gz
Add a way to get the GLTF extensions supported by GLTFDocumentExtension
Diffstat (limited to 'modules/gltf/gltf_document_extension.cpp')
-rw-r--r--modules/gltf/gltf_document_extension.cpp7
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);