Page 1 of 1

[Blender Plugin] Failing to export

Posted: Tue Jun 26, 2018 5:53 pm
by Instant
Blender gives this error message whenever there is an object with no mesh data.

Code: Select all

Traceback (most recent call last):
  File "C:\Program Files\Blender Foundation\Blender\2.79\scripts\addons\io_revolt\operators.py", line 168, in execute
    return exec_export(self.filepath, context)
  File "C:\Program Files\Blender Foundation\Blender\2.79\scripts\addons\io_revolt\operators.py", line 259, in exec_export
    w_out.export_file(filepath, scene)
  File "C:\Program Files\Blender Foundation\Blender\2.79\scripts\addons\io_revolt\w_out.py", line 54, in export_file
    mesh = export_mesh(me, obj, scene, filepath, world=world)
  File "C:\Program Files\Blender Foundation\Blender\2.79\scripts\addons\io_revolt\prm_out.py", line 237, in export_mesh
    rvbbox = rvbbox_from_bm(bm)
  File "C:\Program Files\Blender Foundation\Blender\2.79\scripts\addons\io_revolt\common.py", line 293, in rvbbox_from_bm
    return rvbbox_from_verts(bm.verts)
  File "C:\Program Files\Blender Foundation\Blender\2.79\scripts\addons\io_revolt\common.py", line 297, in rvbbox_from_verts
    xlo = min(v.co[0] for v in verts) / SCALE
ValueError: min() arg is an empty sequence

location: <unknown location>:-1

Re: [Blender plugin] Failing to export

Posted: Tue Jun 26, 2018 9:05 pm
by Kiwi
Yes, I also experienced this some days ago. I have forgot to report this, good that it is archived here now.

Re: [Blender plugin] Failing to export

Posted: Wed Jun 27, 2018 8:14 am
by Marv
This basically means that one exported object doesn't have any vertices and thus fails to generate any bounding boxes. I'll implement a better check so that these objects will be excluded from export in the future.