camera: fix camera movement
Some checks failed
Build legacy Nix package on Ubuntu / build (push) Failing after 8m11s
Some checks failed
Build legacy Nix package on Ubuntu / build (push) Failing after 8m11s
This commit is contained in:
parent
f835941432
commit
998aa68da1
10 changed files with 83 additions and 103 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue