fix clamp in AddEntityOperator

This commit is contained in:
ZappoMan 2015-08-14 09:35:39 -07:00
parent 5fdd7304aa
commit daeb90c1e0

View file

@ -26,8 +26,7 @@ AddEntityOperator::AddEntityOperator(EntityTree* tree,
// caller must have verified existence of newEntity
assert(_newEntity);
// FIXME - how does this change for new origin???
_newEntityBox = _newEntity->getMaximumAACube().clamp(0.0f, (float)TREE_SCALE);
_newEntityBox = _newEntity->getMaximumAACube().clamp((float)(-HALF_TREE_SCALE), (float)HALF_TREE_SCALE);
}
bool AddEntityOperator::preRecursion(OctreeElement* element) {