Made fix to the setReferenceFrame method to properly disable culling

when reference frame is ABSOLUTE.
This commit is contained in:
Robert Osfield 2004-11-06 10:18:55 +00:00
parent 20958de1ea
commit 3fde44b5a5

View File

@ -118,8 +118,7 @@ void Transform::setReferenceFrame(ReferenceFrame rf)
_referenceFrame = rf;
// switch off culling if transform is absolute.
if (_referenceFrame==RELATIVE_RF) setCullingActive(false);
else setCullingActive(true);
setCullingActive(_referenceFrame==RELATIVE_RF);
}
bool Transform::computeBound() const