diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2023-08-03 18:33:49 +0200 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2023-08-03 18:33:49 +0200 |
commit | 1d42504b309832627d32fd632f14dbb74fce66ad (patch) | |
tree | 454032354687e5f005f03a0fd4e8b2b873b22bf7 /modules/gltf/gltf_document.cpp | |
parent | 2e59878201cc96f6299e5f6816ffd65013cac6f8 (diff) | |
parent | e8906b5b80312dd03599813c1c99fc834d747699 (diff) | |
download | redot-engine-1d42504b309832627d32fd632f14dbb74fce66ad.tar.gz |
Merge pull request #79623 from aaronfranke/gltf-export-preserialize
Add `export_preserialize` to the GLTF export process
Diffstat (limited to 'modules/gltf/gltf_document.cpp')
-rw-r--r-- | modules/gltf/gltf_document.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/modules/gltf/gltf_document.cpp b/modules/gltf/gltf_document.cpp index 493eb00991..d23b22049b 100644 --- a/modules/gltf/gltf_document.cpp +++ b/modules/gltf/gltf_document.cpp @@ -115,6 +115,12 @@ Error GLTFDocument::_serialize(Ref<GLTFState> p_state, const String &p_path) { p_state->buffers.push_back(Vector<uint8_t>()); } + for (Ref<GLTFDocumentExtension> ext : document_extensions) { + ERR_CONTINUE(ext.is_null()); + Error err = ext->export_preserialize(p_state); + ERR_CONTINUE(err != OK); + } + /* STEP CONVERT MESH INSTANCES */ _convert_mesh_instances(p_state); |