jpaver / opengametools

A set of open c++ game development tools that are lightweight, easy-to-integrate and free to use. Currently hosting a magicavoxel .vox full scene loader.
MIT License
375 stars 36 forks source link

Fix for _vox_models_are_equal comparing two models with the same volume #61

Closed dougbinks closed 1 year ago

dougbinks commented 1 year ago

Fix for _vox_models_are_equal comparing two models with the same volume but different dimensions as equal.

In the model I had there were two pieces, one 4x9x4 and one 2x18x4 both filled with the same material. These were incorrectly detected as the same and the 2x18x4 used for both.