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

Fix collision for nodes with MRK extra data (Fixes #2415)

This commit is contained in:
scrawl 2015-03-02 01:03:03 +01:00
parent fb0fdf0312
commit 0ad514b29b

View file

@ -274,10 +274,12 @@ void ManualBulletShapeLoader::handleNode(const Nif::Node *node, int flags,
// No collision. Use an internal flag setting to mark this. // No collision. Use an internal flag setting to mark this.
flags |= 0x800; flags |= 0x800;
} }
else if (sd->string == "MRK" && !mShowMarkers) else if (sd->string == "MRK" && !mShowMarkers && raycasting)
// Marker objects. These are only visible in the {
// editor. // Marker objects should be invisible, but still have collision.
// Except in the editor, the marker objects are visible.
return; return;
}
} }
} }