diff --git a/Cargo.lock b/Cargo.lock index 68ceb81..46a8d74 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -862,7 +862,7 @@ dependencies = [ [[package]] name = "bevy_vector_shapes" -version = "0.8.1" +version = "0.8.2" dependencies = [ "any_vec", "bevy", diff --git a/Cargo.toml b/Cargo.toml index e35a5b0..a29ddd1 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -10,7 +10,7 @@ keywords = ["bevy", "gamedev", "graphics"] license = "MIT OR Apache-2.0" name = "bevy_vector_shapes" repository = "https://github.com/james-j-obrien/bevy_vector_shapes" -version = "0.8.1" +version = "0.8.2" [dependencies] any_vec = "0.14.0" diff --git a/README.md b/README.md index 2358198..9c070fe 100644 --- a/README.md +++ b/README.md @@ -62,7 +62,7 @@ fn draw(mut painter: ShapePainter) { | bevy | bevy_vector_shapes | | ---- | ------------------ | -| 0.14 | 0.8.1 | +| 0.14 | 0.8.2 | | 0.13 | 0.7.0 | | 0.12 | 0.6.0 | | 0.11 | 0.5.2 | diff --git a/src/render/render_3d.rs b/src/render/render_3d.rs index b9df82b..e0b1e7d 100644 --- a/src/render/render_3d.rs +++ b/src/render/render_3d.rs @@ -167,9 +167,7 @@ pub fn queue_shapes_3d( for &entity in entities { // SAFETY: we insert this alongside inserting into the vector we are currently iterating let instance = unsafe { instance_data.get(&entity).unwrap_unchecked() }; - let data = &instance.data; - let dist_point = data.transform().transform_vector3(instance.origin); - let distance = rangefinder.distance_translation(&dist_point); + let distance = rangefinder.distance_translation(&instance.origin); transparent_phase.add(Transparent3d { entity, draw_function: draw_transparent,