mirror of
https://github.com/FyroxEngine/Fyrox.git
synced 2026-10-11 22:50:08 +00:00
fixed crash when cancelling prefab instantiation in ui scene
This commit is contained in:
@@ -162,7 +162,11 @@ impl SceneController for UiScene {
|
||||
|
||||
fn on_mouse_wheel(&mut self, _amount: f32, _engine: &mut Engine, _settings: &Settings) {}
|
||||
|
||||
fn on_mouse_leave(&mut self, _engine: &mut Engine, _settings: &Settings) {}
|
||||
fn on_mouse_leave(&mut self, _engine: &mut Engine, _settings: &Settings) {
|
||||
if let Some(preview) = self.preview_instance.take() {
|
||||
self.ui.remove_node(preview.instance);
|
||||
}
|
||||
}
|
||||
|
||||
fn on_drag_over(
|
||||
&mut self,
|
||||
|
||||
Reference in New Issue
Block a user