From b2bd4cc792c6ac0b7b34e2e1e1632bcbe80994db Mon Sep 17 00:00:00 2001 From: "K. S. Ernest (iFire) Lee" Date: Sun, 24 Jul 2022 14:38:57 -0700 Subject: Mend duplicate nodes in the gltf export. --- modules/gltf/gltf_document.cpp | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/modules/gltf/gltf_document.cpp b/modules/gltf/gltf_document.cpp index 5f9099cb31..e7d2aa0cbc 100644 --- a/modules/gltf/gltf_document.cpp +++ b/modules/gltf/gltf_document.cpp @@ -6945,15 +6945,6 @@ Error GLTFDocument::append_from_scene(Node *p_node, Ref state, uint32 state->use_named_skin_binds = p_flags & GLTF_IMPORT_USE_NAMED_SKIN_BINDS; state->discard_meshes_and_materials = p_flags & GLTF_IMPORT_DISCARD_MESHES_AND_MATERIALS; - _convert_scene_node(state, p_node, -1, -1); - if (!state->buffers.size()) { - state->buffers.push_back(Vector()); - } - for (int32_t ext_i = 0; ext_i < document_extensions.size(); ext_i++) { - Ref ext = document_extensions[ext_i]; - ERR_CONTINUE(ext.is_null()); - } - for (int32_t ext_i = 0; ext_i < document_extensions.size(); ext_i++) { Ref ext = document_extensions[ext_i]; ERR_CONTINUE(ext.is_null()); @@ -6964,7 +6955,6 @@ Error GLTFDocument::append_from_scene(Node *p_node, Ref state, uint32 if (!state->buffers.size()) { state->buffers.push_back(Vector()); } - return OK; } -- cgit v1.2.3