Disable collision for placeable objects (Fixes #1634)

pull/447/head
scrawl 10 years ago
parent 1869d37cfc
commit b77558726a

@ -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)

Loading…
Cancel
Save