camera: fix camera movement
Some checks failed
Build legacy Nix package on Ubuntu / build (push) Failing after 8m11s

This commit is contained in:
Florian RICHER 2025-05-29 13:54:00 +02:00
parent f835941432
commit 998aa68da1
Signed by: florian.richer
GPG key ID: C73D37CBED7BFC77
10 changed files with 83 additions and 103 deletions

View file

@ -14,7 +14,9 @@ impl SceneManager {
pub fn load_scene_if_not_loaded(&mut self, scene_context: &SceneContext) {
if let Some(current_scene) = self.current_scene.as_mut() {
if !current_scene.loaded() {
current_scene.load(scene_context);
if let Err(e) = current_scene.load(scene_context) {
log::error!("Error loading scene: {}", e);
}
}
}
}