Skip to content

Commit

Permalink
Use proper naming scheme for FlattenHeirarchy
Browse files Browse the repository at this point in the history
  • Loading branch information
Dyvinia committed May 26, 2022
1 parent 280514c commit 63a49a3
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Plugins/MeshSetPlugin/FrostyMeshSetEditor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -697,7 +697,7 @@ private void FBXCreateMesh(FbxScene scene, MeshSetLod lod, List<FbxNode> boneNod
{
FbxNode actor = FBXExportSubObject(scene, section, lod.VertexBufferSize, indexSize, reader);
if (flattenHierarchy)
actor.Name = lod.String03 + ":" + section.Name;
actor.Name = $"{section.Name}:{lod.String03.Insert(lod.String03.Length - 1, ".00")}";
meshNode.AddChild(actor);

if ((lod.Type == MeshType.MeshType_Skinned || lod.Type == MeshType.MeshType_Composite) && boneNodes.Count > 0)
Expand Down Expand Up @@ -1605,8 +1605,7 @@ public void ImportFBX(string filename, MeshSet inMeshSet, EbxAsset asset, EbxAss
{
if (nodeName.Contains(":"))
{
// flat hierarchy, contains lod:section names
nodeName = nodeName.Remove(nodeName.IndexOf(':'));
// flat hierarchy, contains section:lod names
nodeName = nodeName.Substring(nodeName.Length - 1);
int lodIndex = -1;

Expand Down

0 comments on commit 63a49a3

Please sign in to comment.