flowtsohg / mdx-m3-viewer

A WebGL viewer for MDX and M3 files used by the games Warcraft 3 and Starcraft 2 respectively.
MIT License
132 stars 47 forks source link

Empty texture path doesn't need to be written to MDL #48

Closed EzraZebra closed 4 years ago

EzraZebra commented 4 years ago

https://github.com/flowtsohg/mdx-m3-viewer/blob/aa0efe4f00b1eae9f395adf4224367572f66437e/src/parsers/mdlx/texture.ts#L43

I've tested it ingame, this line doesn't need to be written when the path is empty (i.e. Image "",). Either the path or the replaceable id need to be written though, or it will fail to load the model.