Clear last_order when building Scene

This commit is contained in:
Antonio Scandurra
2023-12-13 22:02:30 +01:00
parent 801125974a
commit 06b9055e27
+1
View File
@@ -54,6 +54,7 @@ impl SceneBuilder {
layer_z_values[*layer_id as usize] = ix as f32 / self.layers_by_order.len() as f32;
}
self.layers_by_order.clear();
self.last_order = None;
// Add all primitives to the BSP splitter to determine draw order
self.splitter.reset();