mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-01 01:07:51 -04:00
pgraph: don't bother calling xform() on empty BoundingVolume
This commit is contained in:
parent
837d3d6b6d
commit
9035b4a610
@ -3514,12 +3514,12 @@ update_cached(bool update_bounds, int pipeline_stage, PandaNode::CDLockedStageRe
|
|||||||
const BoundingVolume **child_begin = &child_volumes[0];
|
const BoundingVolume **child_begin = &child_volumes[0];
|
||||||
const BoundingVolume **child_end = child_begin + child_volumes_i;
|
const BoundingVolume **child_end = child_begin + child_volumes_i;
|
||||||
((BoundingVolume *)gbv)->around(child_begin, child_end);
|
((BoundingVolume *)gbv)->around(child_begin, child_end);
|
||||||
}
|
|
||||||
|
|
||||||
// If we have a transform, apply it to the bounding volume we just
|
// If we have a transform, apply it to the bounding volume we just
|
||||||
// computed.
|
// computed.
|
||||||
if (!transform->is_identity()) {
|
if (!transform->is_identity()) {
|
||||||
gbv->xform(transform->get_mat());
|
gbv->xform(transform->get_mat());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
cdataw->_external_bounds = gbv;
|
cdataw->_external_bounds = gbv;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user