Skip to content

Commit

Permalink
Fixed var nchunk_points
Browse files Browse the repository at this point in the history
In the function `chunksCoherency` I had mistakenly changed `nchunk_points` to `nchunk.points`, this has been reverted.
  • Loading branch information
SpectralVectors authored Apr 2, 2024
1 parent e924c24 commit 9a6e961
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/addons/cam/cam_chunk.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 9a6e961

Please sign in to comment.