Moved normal/tangents generation to submeshes

Former-commit-id: d043284a1a5810b429cc76d8bc071010985a523b
This commit is contained in:
Lynix
2013-03-29 14:48:23 +01:00
parent 83b6e429f8
commit ad978dc85a
9 changed files with 131 additions and 146 deletions

View File

@@ -214,11 +214,11 @@ namespace
vertexBuffer->SetPersistent(false);
vertexBuffer.release();
subMesh->GenerateAABB();
subMesh->GenerateTangents();
subMesh->SetMaterialIndex(0);
mesh->AddSubMesh(subMesh.release());
mesh->GenerateTangents();
return true;
}
}