addam / Export-Paper-Model-from-Blender

Python addon for creating paper models in Blender (development version)
https://blenderartists.org/t/export-paper-model/476597
405 stars 53 forks source link

Paper Model can't export #69

Closed Batleram closed 5 years ago

Batleram commented 5 years ago

Whenever I try to export some objects, this error message appears:

Exception ignored in: <function Unfolder.del at 0x7f580507c048> Traceback (most recent call last): File "/home/atelier/.config/blender/2.80/scripts/addons/io_export_paper_model.py", line 192, in del self.mesh.delete_uvmap() AttributeError: 'Unfolder' object has no attribute 'mesh' Traceback (most recent call last): File "/home/atelier/.config/blender/2.80/scripts/addons/io_export_paper_model.py", line 1810, in execute unfolder = Unfolder(self.object) File "/home/atelier/.config/blender/2.80/scripts/addons/io_export_paper_model.py", line 186, in init self.mesh = Mesh(bm, ob.matrix_world) File "/home/atelier/.config/blender/2.80/scripts/addons/io_export_paper_model.py", line 304, in init edge.calculate_angle() File "/home/atelier/.config/blender/2.80/scripts/addons/io_export_paper_model.py", line 706, in calculate_angle self.angle = asin(normal_a.cross(normal_b).dot(self.vector.normalized())) ValueError: math domain error

location: :-1

It seams pretty random which objects do this. I can provide additional information if needed.

I use Blender 2.8 on ubuntu mate 64bit

Batleram commented 5 years ago

I tried the new version tlecomte provided but the problem persists. I can send you the object so you can do some further testing if that is what you wish to do.

addam commented 5 years ago

Battleram, the fix provided by tlecomte should certainly fix the error that you posted. If problems persist, please post the whole error message again.