Skip to content

Commit

Permalink
layer element read fbx
Browse files Browse the repository at this point in the history
  • Loading branch information
DomCR committed Mar 25, 2022
1 parent f280cfe commit 86448c0
Show file tree
Hide file tree
Showing 16 changed files with 254 additions and 180 deletions.
6 changes: 3 additions & 3 deletions MeshIO.FBX/Converters/FbxConverterBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -394,8 +394,8 @@ protected void buildMeshLayers(FbxNode parent, IEnumerable<LayerElement> layers)
public void buildLayerElement(FbxNode node, LayerElement layer)
{
node.Nodes.Add(new FbxNode("Name", layer.Name));
node.Nodes.Add(new FbxNode("MappingInformationType", layer.MappingInformationType.ToString()));
node.Nodes.Add(new FbxNode("ReferenceInformationType", layer.ReferenceInformationType.ToString()));
node.Nodes.Add(new FbxNode("MappingInformationType", layer.MappingMode.ToString()));
node.Nodes.Add(new FbxNode("ReferenceInformationType", layer.ReferenceMode.ToString()));
}

public FbxNode buildLayerElementMaterial(LayerElementMaterial layer)
Expand All @@ -421,7 +421,7 @@ public FbxNode buildLayerElementBinormal(LayerElementBinormal layer)
FbxNode node = new FbxNode("LayerElementBinormal", 0);
node.Nodes.Add(new FbxNode("Version", 101));
buildLayerElement(node, layer);
node.Nodes.Add(new FbxNode("BiNormals", layer.BiNormals.SelectMany(x => x.GetComponents()).ToArray()));
node.Nodes.Add(new FbxNode("BiNormals", layer.Normals.SelectMany(x => x.GetComponents()).ToArray()));
return node;
}

Expand Down
Loading

0 comments on commit 86448c0

Please sign in to comment.