Eekadoodle prevention causes error in LoopTools addon #42058
Labels
No Label
Interest
Animation & Rigging
Interest
Blender Cloud
Interest
Collada
Interest
Core
Interest
Documentation
Interest
Eevee & Viewport
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
Import and Export
Interest
Modeling
Interest
Modifiers
Interest
Nodes & Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds, Tests & Devices
Interest
Python API
Interest
Rendering & Cycles
Interest
Sculpt, Paint & Texture
Interest
Translations
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Meta
Good First Issue
Meta
Papercut
Module
Add-ons (BF-Blender)
Module
Add-ons (Community)
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender-addons#42058
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
System Information
Ubuntu 12.04.3 LTS (error reproducible on other systems, including Mac)
NVIDIA Corporation G94 [GeForce 9600 GT]
Blender Version
Broken: 2.71a
Short description of error
In the LoopTools addon, there is a short block of code for "eekadoodle prevention". Immediately after this block, a check is performed to see if any (quad) faces have a repeat vertex, in which case that vertex is removed before the faces.new() is called. However, the vertex reordering from the eekadoodle prevention prevents the duplicate vertex check from finding the duplicate vertex in one specific case.
Specifically, if faces- [x] at line 1385 of mesh_looptools.py is of the pattern [a, b, 0, 0], then the eekadoodle prevention rearranges this to be [0, a, b, 0] (not checking for a second 0). The repeat vertex check on line 1391 only looks for vertex #3 == vertex #4, because this is apparently how the quads are constructed (for example from line 859). So the repeat vertex check cannot find the repeat 0 that has been moved, and the script crashes at bm.faces.new() at line 1396.
Solutions:
if sorted(faces- ) != sorted(list(set(faces- ))): # there is a repeat
Exact steps for others to reproduce the error
In the attached .blend file, turn on the LoopTools addon. Select the "curves" object. Click on "Loft" in the LoopTools addon. The error happens for any number of segments, using either linear or cubic interpolation.
looptools_error.blend
Changed status to: 'Open'
Added subscriber: @Animik
Closed as duplicate of #45844