jellees / nns-blender-plugin

A NNS plugin for blender.
19 stars 4 forks source link

Can't export to .imd #12

Open rubi13rubi opened 1 year ago

rubi13rubi commented 1 year ago

image When I try to export a model to .imd I get this error. Textures and materials are correct.

V3getar1anCarr0t commented 1 year ago

I'm wondering if you've solved this issue, because I have a very similar problem.

rubi13rubi commented 1 year ago

No I didn't. I could try to check the code on python but I'm not that used to large projects and plugins so I don't even know where to start

jellees commented 1 year ago

This happens when a primitive is incorrectly tagged as a quad and there are less than 4 positions. This all happens in Primitive.py. At line 384 the primitive is tagged as a quad and at line 393 the positions and other attributes are filled in. This bug seems impossible to me though since the length of the loop indices by which the type of primitive gets tagged is exactly equal to the length of the attributes (eg. position).

It is also quite difficult to reproduce this bug as I have no idea what to do to a model in order to create a situation like this.