Compare commits

...

3 Commits
v0.9.0 ... main

Author SHA1 Message Date
6f18f7ffbc Release
Some checks failed
Release / release (push) Failing after 2m30s
Test / test (ubuntu-latest) (push) Successful in 2m4s
2025-01-06 19:39:37 -05:00
888a9e78fc Update CHANGELOG.
Some checks failed
Test / test (ubuntu-latest) (push) Has been cancelled
2025-01-06 19:39:20 -05:00
7738cdb27c chore: Don't set position if values are NaN. 2025-01-06 19:38:57 -05:00
3 changed files with 17 additions and 9 deletions

View File

@ -2,6 +2,12 @@
All notable changes to this project will be documented in this file.
## Version 0.9.1 - 2025-01-07
### Miscellaneous Tasks
- Don't set position if values are NaN.
## Version 0.9.0 - 2024-12-06
### Miscellaneous Tasks

View File

@ -1,6 +1,6 @@
[package]
name = "bevy_synthizer"
version = "0.9.0"
version = "0.9.1"
authors = ["Nolan Darilek <nolan@thewordnerd.info>"]
description = "A Bevy plugin for Synthizer, a library for 3D audio and synthesis with a focus on games and VR applications"
license = "MIT OR Apache-2.0"

View File

@ -441,14 +441,16 @@ fn update_source_properties(
if let Some(source) = handle.cast_to::<syz::Source3D>().expect("Failed to cast") {
if let Some(transform) = transform {
let translation = transform.translation();
source
.position()
.set((
translation.x as f64,
translation.y as f64,
translation.z as f64,
))
.expect("Failed to set position");
if !translation.x.is_nan() && !translation.y.is_nan() && !translation.z.is_nan() {
source
.position()
.set((
translation.x as f64,
translation.y as f64,
translation.z as f64,
))
.expect("Failed to set position");
}
let distance_model = distance_model
.cloned()
.map(|v| *v)