Compare commits
No commits in common. "888a9e78fce1bfbeb64ced277c286d0c8731df27" and "0c8f5578867799236621a084cbff20d3b99c9609" have entirely different histories.
888a9e78fc
...
0c8f557886
|
@ -2,12 +2,6 @@
|
|||
|
||||
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
|
||||
|
|
18
src/lib.rs
18
src/lib.rs
|
@ -441,16 +441,14 @@ 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();
|
||||
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");
|
||||
}
|
||||
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)
|
||||
|
|
Loading…
Reference in New Issue
Block a user