mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 03:37:49 +02:00
fix clamp in AddEntityOperator
This commit is contained in:
parent
5fdd7304aa
commit
daeb90c1e0
1 changed files with 1 additions and 2 deletions
|
@ -26,8 +26,7 @@ AddEntityOperator::AddEntityOperator(EntityTree* tree,
|
||||||
// caller must have verified existence of newEntity
|
// caller must have verified existence of newEntity
|
||||||
assert(_newEntity);
|
assert(_newEntity);
|
||||||
|
|
||||||
// FIXME - how does this change for new origin???
|
_newEntityBox = _newEntity->getMaximumAACube().clamp((float)(-HALF_TREE_SCALE), (float)HALF_TREE_SCALE);
|
||||||
_newEntityBox = _newEntity->getMaximumAACube().clamp(0.0f, (float)TREE_SCALE);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
bool AddEntityOperator::preRecursion(OctreeElement* element) {
|
bool AddEntityOperator::preRecursion(OctreeElement* element) {
|
||||||
|
|
Loading…
Reference in a new issue