B3D Model multibrush Bug + Solution

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

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

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.