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:
@@ -752,7 +752,7 @@ namespace
|
|||||||
const auto maxWeightCount =
|
const auto maxWeightCount =
|
||||||
common.m_vertex_bone_weights[xmodelToCommonVertexIndexLookup[xmodelToCommonVertexIndexLookup.size() - 1]].weightCount;
|
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);
|
CreateVertListData(surface, xmodelToCommonVertexIndexLookup, common);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user