From e8906b5b80312dd03599813c1c99fc834d747699 Mon Sep 17 00:00:00 2001 From: Aaron Franke Date: Tue, 18 Jul 2023 11:15:58 -0500 Subject: Add export_preserialize to the GLTF export process --- modules/gltf/gltf_document.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'modules/gltf/gltf_document.cpp') diff --git a/modules/gltf/gltf_document.cpp b/modules/gltf/gltf_document.cpp index d828363e03..923bd6dd6a 100644 --- a/modules/gltf/gltf_document.cpp +++ b/modules/gltf/gltf_document.cpp @@ -115,6 +115,12 @@ Error GLTFDocument::_serialize(Ref p_state, const String &p_path) { p_state->buffers.push_back(Vector()); } + for (Ref 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); -- cgit v1.2.3