fix for meshes not showing up in the game engine.
authorCampbell Barton <ideasman42@gmail.com>
Thu, 23 Feb 2012 14:24:45 +0000 (14:24 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Thu, 23 Feb 2012 14:24:45 +0000 (14:24 +0000)
source/gameengine/Converter/BL_BlenderDataConversion.cpp

index 884ab63f93b676ebc5d7b6f9bd81a5c485b00708..3eb00a35904cf6710a5f55dd5f9f9a71409caa15 100644 (file)
@@ -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);