diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-02-23 18:24:45 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-02-23 18:24:45 +0400 |
commit | 6cfb67b549f7fff4d446e79e78e83b755345c2ef (patch) | |
tree | f9782194996b73de40bb2594b100ba72fe3e2eba /source | |
parent | 2fd226abe77514594a36eb8781c78b8a09fedaec (diff) |
fix for meshes not showing up in the game engine.
Diffstat (limited to 'source')
-rw-r--r-- | source/gameengine/Converter/BL_BlenderDataConversion.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/gameengine/Converter/BL_BlenderDataConversion.cpp b/source/gameengine/Converter/BL_BlenderDataConversion.cpp index 884ab63f93b..3eb00a35904 100644 --- a/source/gameengine/Converter/BL_BlenderDataConversion.cpp +++ b/source/gameengine/Converter/BL_BlenderDataConversion.cpp @@ -907,6 +907,7 @@ RAS_MeshObject* BL_ConvertMesh(Mesh* mesh, Object* blenderobj, KX_Scene* scene, return meshobj; // Get DerivedMesh data DerivedMesh *dm = CDDM_from_mesh(mesh, blenderobj); + DM_ensure_tessface(dm); MVert *mvert = dm->getVertArray(dm); int totvert = dm->getNumVerts(dm); |