Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/entity.cc')
-rw-r--r--src/core/entity.cc4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/core/entity.cc b/src/core/entity.cc
index 6ce94a7..84f4de0 100644
--- a/src/core/entity.cc
+++ b/src/core/entity.cc
@@ -492,7 +492,6 @@ void Entity::frame(const unsigned long elapsed)
{
if (entity_collision_child_shapes.size() > 0) {
btCompoundShape *compoundshape = static_cast<btCompoundShape *> (entity_collision_shape);
- bool recalculate = false;
const float modelscale = radius() / model()->radius();
for (int n = 0; n < compoundshape->getNumChildShapes(); n++) {
@@ -524,9 +523,6 @@ void Entity::frame(const unsigned long elapsed)
compoundshape->updateChildTransform(n, child_transform);
}
}
-
- if (recalculate)
- compoundshape->recalculateLocalAabb();
}
}
}