Menu

#3 layer setting inconsistent with objectmanager sort order

open
nobody
None
5
2007-06-24
2007-06-24
No

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.

Discussion

  • Jannik Jochem

    Jannik Jochem - 2007-06-24

    Logged In: YES
    user_id=1826741
    Originator: YES

    Oops, seem to have lost a printf somwhere... Patch updated.
    File Added: VisualObjectManager.java.patch

     
  • Jannik Jochem

    Jannik Jochem - 2007-06-24

    Patch against 2006-12-02

     

Log in to post a comment.