1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-01-21 12:53:53 +00:00

Don't create meshes for collision shapes

This commit is contained in:
Chris Robinson 2013-02-25 15:44:59 -08:00
parent 9679daa6a4
commit aefd12dfe0

View file

@ -1031,6 +1031,10 @@ public:
void createMeshes(const Nif::Node *node, MeshInfoList &meshes, int flags=0)
{
// Do not create meshes for the collision shape (includes all children)
if(node->recType == Nif::RC_RootCollisionNode)
return;
flags |= node->flags;
// Marker objects: just skip the entire node