bevy/crates/bevy_gizmos/src
Olle Lukowski cf4baf8fbf
Make gizmos take primitives by ref (#13534)
# Objective

Fixes #13427.

## Solution

I changed the traits, and updated all usages.

## Testing

The `render_primitives` example still works perfectly.

---

## Changelog

- Made `gizmos.primitive_2d()` and `gizmos.primitive_3d()` take the
primitives by ref.

## Migration Guide

- Any usages of `gizmos.primitive_2d()` and/or `gizmos.primitive_3d()`
need to be updated to pass the primitive in by reference.
2024-05-27 13:48:47 +00:00
..
primitives Make gizmos take primitives by ref (#13534) 2024-05-27 13:48:47 +00:00
aabb.rs Migrate from LegacyColor to bevy_color::Color (#12163) 2024-02-29 19:35:12 +00:00
arcs.rs Inconsistent segments/resolution naming (#13438) 2024-05-21 18:42:59 +00:00
arrows.rs Contextually clearing gizmos (#10973) 2024-04-23 00:16:12 +00:00
circles.rs Inconsistent segments/resolution naming (#13438) 2024-05-21 18:42:59 +00:00
config.rs #12502 Remove limit on RenderLayers. (#13317) 2024-05-16 16:15:47 +00:00
gizmos.rs Inconsistent segments/resolution naming (#13438) 2024-05-21 18:42:59 +00:00
grid.rs Contextually clearing gizmos (#10973) 2024-04-23 00:16:12 +00:00
lib.rs Add Rounded box gizmos (#11948) 2024-05-16 16:13:49 +00:00
light.rs Make gizmos take primitives by ref (#13534) 2024-05-27 13:48:47 +00:00
line_joints.wgsl Gizmo line joints (#12252) 2024-03-11 19:21:32 +00:00
lines.wgsl Gizmo line styles (#12394) 2024-03-25 19:10:45 +00:00
pipeline_2d.rs Make render phases render world resources instead of components. (#13277) 2024-05-21 18:23:04 +00:00
pipeline_3d.rs Make render phases render world resources instead of components. (#13277) 2024-05-21 18:23:04 +00:00
rounded_box.rs Inconsistent segments/resolution naming (#13438) 2024-05-21 18:42:59 +00:00