From 772965ad03d231df439bde4d837bee0aee7f422a Mon Sep 17 00:00:00 2001 From: hhalen Date: Wed, 17 Apr 2019 19:04:25 -0700 Subject: [PATCH] Remove unused function. --- src/gltf/GltfModel.hpp | 32 -------------------------------- 1 file changed, 32 deletions(-) diff --git a/src/gltf/GltfModel.hpp b/src/gltf/GltfModel.hpp index 4702c08..f82b09f 100644 --- a/src/gltf/GltfModel.hpp +++ b/src/gltf/GltfModel.hpp @@ -123,38 +123,6 @@ class GltfModel { return accessor; }; - template - std::shared_ptr AddArrayAttributeToPrimitive( - BufferData& buffer, - const RawModel& surfaceModel, - PrimitiveData& primitive, - const AttributeDefinition& attrDef) { - // copy attribute data into vector - std::vector> attribArr; - surfaceModel.GetAttributeArray(attribArr, attrDef.rawAttributeIx); - - const AttributeDefinition ATTR_WEIGHTS( - "WEIGHTS_0", - &RawVertex::jointWeights, - attrDef.glType, - attrDef.dracoAttribute, - draco::DT_FLOAT32); - - std::shared_ptr accessor; - if (attrDef.dracoComponentType != draco::DT_INVALID && primitive.dracoMesh != nullptr) { - primitive.AddDracoAttrib(attrDef, attribArr); - - accessor = accessors.hold(new AccessorData(attrDef.glType)); - accessor->count = attribArr.size(); - } - else { - auto bufferView = GetAlignedBufferView(buffer, BufferViewData::GL_ARRAY_BUFFER); - accessor = AddAccessorWithView(*bufferView, attrDef.glType, attribArr, std::string("")); - } - primitive.AddAttrib(attrDef.gltfName, *accessor); - return accessor; - }; - template void serializeHolder(json& glTFJson, std::string key, const Holder holder) { if (!holder.ptrs.empty()) {