Fixed typo in apply_clip_plane() causing only the first plane to be considered.

This commit is contained in:
Mark Wojtowicz 2010-04-02 23:09:58 +00:00
parent aed4f7f0c5
commit 822c496f68
2 changed files with 2 additions and 2 deletions

View File

@ -598,7 +598,7 @@ apply_clip_plane(CollisionBox::Points &new_points,
bool first_plane = true;
for (int i = 0; i < num_planes; i++) {
NodePath plane_path = cpa->get_on_plane(0);
NodePath plane_path = cpa->get_on_plane(i);
PlaneNode *plane_node = DCAST(PlaneNode, plane_path.node());
if ((plane_node->get_clip_effect() & PlaneNode::CE_collision) != 0) {
CPT(TransformState) new_transform =

View File

@ -1415,7 +1415,7 @@ apply_clip_plane(CollisionPolygon::Points &new_points,
bool first_plane = true;
for (int i = 0; i < num_planes; i++) {
NodePath plane_path = cpa->get_on_plane(0);
NodePath plane_path = cpa->get_on_plane(i);
PlaneNode *plane_node = DCAST(PlaneNode, plane_path.node());
if ((plane_node->get_clip_effect() & PlaneNode::CE_collision) != 0) {
CPT(TransformState) new_transform =