Depth sort View all scene (background, workspace and foreground)

This commit is contained in:
Bruno Herbelin
2022-03-26 15:08:47 +01:00
parent e888bfbc8d
commit 5b6ec81cee

View File

@@ -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();
} }
} }