From bdc26c977d4fe3b12cb1ce05a278cedb75dfbb1b Mon Sep 17 00:00:00 2001 From: "Gregory J. Ward" Date: Thu, 4 Apr 2024 20:04:11 +0000 Subject: [PATCH] fix: Regression introduced in previous change (almost 5 years ago!) --- src/rt/m_clip.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/rt/m_clip.c b/src/rt/m_clip.c index 2a9a66691..92f2da07a 100644 --- a/src/rt/m_clip.c +++ b/src/rt/m_clip.c @@ -1,5 +1,5 @@ #ifndef lint -static const char RCSid[] = "$Id: m_clip.c,v 2.13 2019/05/04 03:14:04 greg Exp $"; +static const char RCSid[] = "$Id: m_clip.c,v 2.14 2024/04/04 20:04:11 greg Exp $"; #endif /* * m_clip.c - routine for clipped (cut) objects. @@ -93,7 +93,7 @@ m_clip( /* clip objects from ray */ const RAY *rp; /* check for penetration */ for (rp = r; rp->parent != NULL; rp = rp->parent) - if ((rp->rtype == RAYREFL) & (rp->parent->ro != NULL) + if (!(rp->rtype & RAYREFL) & (rp->parent->ro != NULL) && inset(modset, rp->parent->ro->omod)) { if (rp->parent->rod > 0.0) inside++;