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
373 stars 35 forks source link

An instances layer_index can be 0xFFFFFFFF (k_invalid_group_index) #60

Open dougbinks opened 1 year ago

dougbinks commented 1 year ago

I've recently encountered a model with an instance not in any layers, with a layer_index equal to k_invalid_group_index / UINT32_MAX.

I suggest we might need to add k_invalid_layer_index, or perhaps add a comment that this could be UINT32_MAX.