Closed mgerhardy closed 1 year ago
oh, btw. the segfault happens in ogt_vox_sample_instance_transform
for me, because the groups are null
but there are other places like scene->groups[instance.group_index].hidden
were the group_index
is 0
and the num_groups
is 0
, too
Hey @mgerhardy -- I took a look and pushed this PR https://github.com/jpaver/opengametools/pull/56 that fixes this issue. I would appreciate if you could take it for a spin and confirm the issues are fixed for you too. Thanks for the report!
I've added this to the end of
ogt_vox_read_scene_with_flags
for the attached vox file - and it triggers. There is an invalid group index loaded. Maybe we should add some sanity checks to the end of this function to ensure that the client code can be safe in accessing members via index.vox2obj
crashes on that input file, too, Magicavoxel is able to load itmagicavoxel.vox.zip