Преглед на файлове

Update FBXExporter.cs

should make it possible to import fbx saved in visual studio
davepermen преди 11 години
родител
ревизия
edf642684c
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      Exporters/FBX - OBJ/BabylonExport.Core/Exporters/FBX/FBXExporter.cs

+ 1 - 1
Exporters/FBX - OBJ/BabylonExport.Core/Exporters/FBX/FBXExporter.cs

@@ -191,7 +191,7 @@ namespace BabylonExport.Core.Exporters
                 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];