Layer depth is set during items caching (so now they are rendered on proper layers).
This commit is contained in:
parent
a43dd351df
commit
c91b4ffbc4
|
@ -420,6 +420,7 @@ void VIEW::redrawRect( const BOX2I& aRect )
|
|||
{
|
||||
drawItem drawFunc( this, l->id );
|
||||
|
||||
if( !m_useGroups )
|
||||
m_gal->SetLayerDepth( (double) l->renderingOrder );
|
||||
l->items->Query( aRect, drawFunc );
|
||||
l->isDirty = false;
|
||||
|
@ -614,6 +615,7 @@ void VIEW::RecacheAllItems( bool aImmediately )
|
|||
for( LayerMapIter i = m_layers.begin(); i != m_layers.end(); ++i )
|
||||
{
|
||||
VIEW_LAYER* l = & ( ( *i ).second );
|
||||
m_gal->SetLayerDepth( (double) l->renderingOrder );
|
||||
recacheItem visitor( this, m_gal, l->id, aImmediately );
|
||||
l->items->Query( r, visitor );
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue