mirror of
https://github.com/overte-org/overte.git
synced 2025-04-21 08:04:01 +02:00
remove assert in favor of warning
This commit is contained in:
parent
8223481ecb
commit
d89b29581b
1 changed files with 9 additions and 1 deletions
|
@ -175,7 +175,15 @@ bool UpdateEntityOperator::preRecursion(OctreeElement* element) {
|
|||
|
||||
// if we are the existing containing element, then we can just do the update of the entity properties
|
||||
if (entityTreeElement == _containingElement) {
|
||||
assert(!_removeOld); // We shouldn't be in a remove old case and also be the new best fit
|
||||
|
||||
// TODO: We shouldn't be in a remove old case and also be the new best fit. This indicates that
|
||||
// we have some kind of a logic error in this operator. But, it can handle it properly by setting
|
||||
// the new properties for the entity and moving on. Still going to output a warning that if we
|
||||
// see consistently we will want to address this.
|
||||
if (_removeOld) {
|
||||
qDebug() << "UNEXPECTED - UpdateEntityOperator - "
|
||||
"we thought we needed to removeOld, but the old entity is our best fit.";
|
||||
}
|
||||
|
||||
// set the entity properties and mark our element as changed.
|
||||
_existingEntity->setProperties(_properties);
|
||||
|
|
Loading…
Reference in a new issue