TheCrazyT / BlenderMhwModelImporter

Plugin for blender to import mod3 files
15 stars 5 forks source link

Did some code cleanup and moved functions #9

Closed AsteriskAmpersand closed 5 years ago

AsteriskAmpersand commented 5 years ago

Summarised some functions into more pythonic forms (enumerate vs manual index tracking) Changed star imports to aliased imports so the project is now linter and IDE friendly. Did major class cleanup on the modvertexbuffers. Grouped them under a parent class. Removed limit on number of polygon sides by force triangulating (as it was doing for quads). Did the gui split you left on a todo.

I'm still not done but this is a good merging point, it was tested functional for a basic import export test case. I'll be attempting to do an aggressive rewrite of the main importing and exporting code so it's not a monolithic god function for both cases but something actually readable. Fixing some of the issues might require a proper whole rewrite of sections however.