added flipyz option to plugin for swapping the Y and Z axes around #12
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Very useful plugin, but with a quirk! Blender uses a different orientation to most game engines - the Z axis is upwards instead of Y. This is quite troublesome since all models get flipped when loading them into a game which doesn't take that into consideration. This issue would turn even more prevalent if IQM models are delivered from several different 3D animation applications of which some might not be flipped. Since it is an issue on blender's side, it seems reasonable to solve it in the exporter.
This pull request creates a new property for the plugin called "Flip Y and Z" which flips the Y and Z axes around in the exporter to circumvent the issue. I tried it with my own game and it works. However since I have only gotten to the point of displaying meshes (no animations), it is untested with animations and anything that isn't just meshes. I also only added the code to the collectMeshes function since I couldn't test if something needed to be done in the animation loading function. But if that is the case, maybe it would be easy for you to apply the same solution where needed, otherwise I could update the pull request whenever I get to loading animations. :)