B3D Model multibrush Bug + Solution

BlitzMax Forums/MiniB3D Module/B3D Model multibrush Bug + Solution

klepto2(Posted 2007) [#1]
After experimenting with some b3d models I have found a small
bug, relating brush loading in the loadanimb3d Function.
This bug cause trouble when you try to load more then 1 brush in the same B3D file.

To avoid it:

move line: 319 (should be "local brush_no = 0")
to line 175 or earlier, just right before the 'repeat' loop starts.

As you see, now brush number 0 won't be overwritten anymore.

Cheers.