mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 02:15:43 -04:00
Fixed typo in apply_clip_plane() causing only the first plane to be considered.
This commit is contained in:
parent
aed4f7f0c5
commit
822c496f68
@ -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 =
|
||||
|
@ -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 =
|
||||
|
Loading…
x
Reference in New Issue
Block a user