forked from mirror/openmw-tes3mp
Fix collision for nodes with MRK extra data (Fixes #2415)
This commit is contained in:
parent
fb0fdf0312
commit
0ad514b29b
1 changed files with 5 additions and 3 deletions
|
@ -274,12 +274,14 @@ void ManualBulletShapeLoader::handleNode(const Nif::Node *node, int flags,
|
|||
// No collision. Use an internal flag setting to mark this.
|
||||
flags |= 0x800;
|
||||
}
|
||||
else if (sd->string == "MRK" && !mShowMarkers)
|
||||
// Marker objects. These are only visible in the
|
||||
// editor.
|
||||
else if (sd->string == "MRK" && !mShowMarkers && raycasting)
|
||||
{
|
||||
// Marker objects should be invisible, but still have collision.
|
||||
// Except in the editor, the marker objects are visible.
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (isCollisionNode || (mShape->mAutogenerated && !raycasting))
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue