mirror of
https://github.com/FyroxEngine/Fyrox.git
synced 2026-10-12 02:02:20 +00:00
fixed sound context serialization
- this bug caused all sound buses to disapper on load
This commit is contained in:
@@ -377,10 +377,10 @@ impl Visit for State {
|
||||
|
||||
self.listener.visit("Listener", &mut region)?;
|
||||
if !self.serialization_options.skip_sources {
|
||||
self.sources.visit("Sources", &mut region)?;
|
||||
let _ = self.sources.visit("Sources", &mut region);
|
||||
}
|
||||
if !self.serialization_options.skip_bus_graph {
|
||||
self.bus_graph.visit("BusGraph", &mut region)?;
|
||||
let _ = self.bus_graph.visit("BusGraph", &mut region);
|
||||
}
|
||||
self.renderer.visit("Renderer", &mut region)?;
|
||||
self.paused.visit("Paused", &mut region)?;
|
||||
|
||||
@@ -20,7 +20,6 @@ use std::{sync::MutexGuard, time::Duration};
|
||||
/// Sound context.
|
||||
#[derive(Debug, Visit)]
|
||||
pub struct SoundContext {
|
||||
#[visit(optional)]
|
||||
pub(crate) native: fyrox_sound::context::SoundContext,
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user