ccxvii / asstools

3d Asset Tools
67 stars 22 forks source link

iqe_import: update to work in Blender 2.8 #6

Closed scurest closed 5 years ago

scurest commented 5 years ago

Hi.

iqe_import survived a huge number of Blender versions but 2.8 finally broke it :) This PR adds support for 2.8. I've tested this in 2.64, 2.79, and 2.80, and it works in all of them (but I only have a few files for testing so more testing would be nice).

Some other tiny enhancements:

scurest commented 5 years ago

Oh, and I wasn't sure if I edited the right importer (are there three?).

ccxvii commented 5 years ago

Yes, there are three importers. I can barely remember the difference between iqe_import.py and iqe_import_two.py. I think (but don't quote me) that the _two importer is cleaned up and simplified because it only handles the textual IQE format, not having to cope with the binary IQM. The code is mostly the same or very similar, so your changes ought to be easy enough to port over to the other one.

iqe_import_simple.py only does static models, no armatures or weights custom attributes.