2
0
mirror of https://github.com/Laupetin/OpenAssetTools.git synced 2025-12-19 08:51:50 +00:00

fix: not writing rigid models ever

This commit is contained in:
Jan Laupetin
2025-12-17 17:03:04 +00:00
parent bcf2b0a3ae
commit 1e8ae0ff59

View File

@@ -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);
}