Skip to content

Commit

Permalink
Fix double application of shape transforms, bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
james-j-obrien committed Sep 12, 2024
1 parent 8d9e207 commit 0dff9e2
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 |
Expand Down
4 changes: 1 addition & 3 deletions src/render/render_3d.rs
Original file line number Diff line number Diff line change
Expand Up @@ -167,9 +167,7 @@ pub fn queue_shapes_3d<T: ShapeData>(
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,
Expand Down

0 comments on commit 0dff9e2

Please sign in to comment.