mirror of
https://github.com/brunoherbelin/vimix.git
synced 2025-12-12 10:49:59 +01:00
Depth sort View all scene (background, workspace and foreground)
This commit is contained in:
4
View.cpp
4
View.cpp
@@ -80,7 +80,9 @@ void View::update(float dt)
|
|||||||
// a more complete update is requested
|
// a more complete update is requested
|
||||||
if (View::need_deep_update_ > 0) {
|
if (View::need_deep_update_ > 0) {
|
||||||
// reorder sources
|
// reorder sources
|
||||||
scene.root()->sort();
|
scene.bg()->sort();
|
||||||
|
scene.ws()->sort();
|
||||||
|
scene.fg()->sort();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user