forked from mirror/openmw-tes3mp
Marker collision fix (Fixes #2461)
This commit is contained in:
parent
d573458896
commit
7bc0d41bb0
1 changed files with 2 additions and 2 deletions
|
@ -274,9 +274,9 @@ 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 && raycasting)
|
else if (sd->string == "MRK" && !mShowMarkers && (raycasting || mShape->mAutogenerated))
|
||||||
{
|
{
|
||||||
// Marker objects should be invisible, but still have collision.
|
// Marker objects should be invisible, but can still have collision if the model explicitely specifies it via a RootCollisionNode.
|
||||||
// Except in the editor, the marker objects are visible.
|
// Except in the editor, the marker objects are visible.
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue