Skip to content

Commit

Permalink
Merge pull request #103 from davepermen/patch-1
Browse files Browse the repository at this point in the history
Update FBXExporter.cs

Former-commit-id: 59d72a5
  • Loading branch information
deltakosh committed Nov 26, 2013
2 parents 191f745 + 037c085 commit 93f1854
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 93f1854

Please sign in to comment.