When calling setLayer on a VisualObject, the layer is updated but the LinkedList of the parent VisualObject's objManager is not sorted again to reflect the changes to the rendering order.
A sort of the objManager is only triggered if new VisualObjects are added to the associated VisualObject.
This results in layer settings only being honoured if the layer was set before the VisualObject in question was added to its parent VisualObject.
A quick and dirty workaround is to sort the VisualObjectManager's LinkedList prior to every render, but obviously this degrades Performance. Patch is attached.
Logged In: YES
user_id=1826741
Originator: YES
Oops, seem to have lost a printf somwhere... Patch updated.
File Added: VisualObjectManager.java.patch
Patch against 2006-12-02