Skip to content

Commit

Permalink
Update FBXExporter.cs
Browse files Browse the repository at this point in the history
should make it possible to import fbx saved in visual studio

Former-commit-id: edf6426
  • Loading branch information
davepermen committed Nov 25, 2013
1 parent 191f745 commit 037c085
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ void ParseMesh(ModelMesh modelMesh, BabylonScene scene, BabylonSkeleton skeleton
var indices = new ushort[part.PrimitiveCount * 3];
part.IndexBuffer.GetData(part.StartIndex * 2, indices, 0, indices.Length);

if (part.VertexBuffer.VertexDeclaration.VertexStride > PositionNormalTextured.Stride)
if (part.VertexBuffer.VertexDeclaration.VertexStride >= PositionNormalTexturedWeights.Stride)
{
var mesh = new Mesh<PositionNormalTexturedWeights>(material);
var vertices = new PositionNormalTexturedWeights[part.NumVertices];
Expand Down

0 comments on commit 037c085

Please sign in to comment.