From 9a6e9612f3e9cabe9bfd05d6834d5e96daf871b0 Mon Sep 17 00:00:00 2001 From: SpectralVectors Date: Tue, 2 Apr 2024 12:47:42 -0400 Subject: [PATCH] Fixed var nchunk_points In the function `chunksCoherency` I had mistakenly changed `nchunk_points` to `nchunk.points`, this has been reverted. --- scripts/addons/cam/cam_chunk.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/addons/cam/cam_chunk.py b/scripts/addons/cam/cam_chunk.py index cd5baedb..0e0cf843 100644 --- a/scripts/addons/cam/cam_chunk.py +++ b/scripts/addons/cam/cam_chunk.py @@ -705,12 +705,12 @@ def chunksCoherency(chunks): angle = vec.angle(lastvec, vec) # print(angle,i) if angle > 1.07: # 60 degrees is maximum toleration for pencil paths. - if len(nchunk.points) > 4: # this is a testing threshold + if len(nchunk_points) > 4: # this is a testing threshold nchunks.append(nchunk.to_chunk()) nchunk = camPathChunkBuilder() lastvec = vec - if len(nchunk.points) > 4: # this is a testing threshold - nchunk.points = np.array(nchunk.points) + if len(nchunk_points) > 4: # this is a testing threshold + nchunk.points = np.array(nchunk_points) nchunks.append(nchunk) return nchunks