From 1e8ae0ff5903db0eef428bb350c9b8d99e887236 Mon Sep 17 00:00:00 2001 From: Jan Laupetin Date: Wed, 17 Dec 2025 17:03:04 +0000 Subject: [PATCH] fix: not writing rigid models ever --- src/ObjLoading/XModel/LoaderXModel.cpp.template | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ObjLoading/XModel/LoaderXModel.cpp.template b/src/ObjLoading/XModel/LoaderXModel.cpp.template index 0c6b4067..993077f4 100644 --- a/src/ObjLoading/XModel/LoaderXModel.cpp.template +++ b/src/ObjLoading/XModel/LoaderXModel.cpp.template @@ -752,7 +752,7 @@ namespace const auto maxWeightCount = common.m_vertex_bone_weights[xmodelToCommonVertexIndexLookup[xmodelToCommonVertexIndexLookup.size() - 1]].weightCount; - if (maxWeightCount == 0) // XModel is rigid + if (maxWeightCount <= 1) // XModel is rigid { CreateVertListData(surface, xmodelToCommonVertexIndexLookup, common); }