From 46111ae106bb5e092bbf38a8db4a81b77c9c9ba3 Mon Sep 17 00:00:00 2001 From: Jan Date: Thu, 5 Sep 2024 21:16:55 +0200 Subject: [PATCH] chore: add note about only rigid models being supported right now --- src/ObjLoading/Game/T6/XModel/JsonXModelLoader.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/ObjLoading/Game/T6/XModel/JsonXModelLoader.cpp b/src/ObjLoading/Game/T6/XModel/JsonXModelLoader.cpp index 5616b6cc..aad41974 100644 --- a/src/ObjLoading/Game/T6/XModel/JsonXModelLoader.cpp +++ b/src/ObjLoading/Game/T6/XModel/JsonXModelLoader.cpp @@ -584,7 +584,6 @@ namespace void CreateVertsBlendData(XSurface& surface, const std::vector& vertexIndices, const XModelCommon& common) { // TODO - assert(false); } static void ReorderVerticesByWeightCount(std::vector& vertexIndices, XSurface& surface, const XModelCommon& common) @@ -684,7 +683,12 @@ namespace if (!hasVertsBlend) CreateVertListData(surface, xmodelToCommonVertexIndexLookup, common); else + { CreateVertsBlendData(surface, xmodelToCommonVertexIndexLookup, common); + + std::cerr << "Only rigid models are supported at the moment\n"; + return false; + } } return true;