1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-02-06 22:45:38 +00:00

Disable collision for placeable objects (Fixes #1634)

This commit is contained in:
scrawl 2015-01-16 14:59:42 +01:00
parent 1869d37cfc
commit b77558726a

View file

@ -461,7 +461,9 @@ namespace Physic
BulletShapeManager::getSingletonPtr()->load(outputstring,"General");
BulletShapePtr shape = BulletShapeManager::getSingleton().getByName(outputstring,"General");
if (placeable && !raycasting && shape->mCollisionShape && shape->mAutogenerated)
// TODO: add option somewhere to enable collision for placeable meshes
if (placeable && !raycasting && shape->mCollisionShape)
return NULL;
if (!shape->mCollisionShape && !raycasting)