[Verse-dev] bitmap tile bug

Brecht Van Lommel verse-dev@blender.org
06 Jul 2004 19:23:03 +0000


Hi all,

There is a bug in vs_node_bitmap.c, callback_send_b_layer_subscribe,
causing the server to send incorrect bitmap data, .. or crash. It is on
line 386, 392, 398, 404 and 410 (yes, the really long confusing ones :).

The problem is that node->layers[layer_id].layer is casted to a VNBTile,
whereas it should first be casted to a uint16, uint8, uint16, real32 or
real64, and then be casted to a VNBTile.

So for example, for VN_B_LAYER_UINT8:
&((VNBTile *)node->layers[layer_id].layer[***])
has to change to:
&((VNBTile *)((uint8*)node->layers[layer_id].layer[***]))

This should of course be changed for all 5 lines.

One a side note, I updated the gimp plug-in and pyverse for r3p1:
http://users.pandora.be/blendix/verse/
The gimp plug-in will work, if this bug is fixed.

Brecht