2
0
mirror of https://github.com/Laupetin/OpenAssetTools.git synced 2026-05-13 05:41:43 +00:00

chore: update default root bone name to empty string and do not specify if matching default name

This commit is contained in:
Jan Laupetin
2026-05-03 13:51:56 +02:00
parent ed1ed73c73
commit 0c1bc747dc
3 changed files with 8 additions and 3 deletions
@@ -163,7 +163,7 @@ namespace
assert(common.m_vertex_bone_weights.size() == common.m_vertices.size());
XModelBone rootBone{
.name = jXModel.rootBoneName.value_or("root"),
.name = jXModel.rootBoneName.value_or(xmodel::DEFAULT_XMODEL_ROOT_BONE_NAME),
.parentIndex = std::nullopt,
.scale = {1.0f, 1.0f, 1.0f},
.globalOffset = {0.0f, 0.0f, 0.0f},