Made fix to the setReferenceFrame method to properly disable culling
when reference frame is ABSOLUTE.
This commit is contained in:
parent
20958de1ea
commit
3fde44b5a5
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user