mirror of
https://github.com/emilk/egui.git
synced 2026-08-31 05:40:03 -04:00
Fix debug_assert triggered by menu/intersect_ray (#7299)
This commit is contained in:
@@ -651,7 +651,7 @@ impl Rect {
|
||||
pub fn intersects_ray(&self, o: Pos2, d: Vec2) -> bool {
|
||||
debug_assert!(
|
||||
d.is_normalized(),
|
||||
"expected normalized direction, but `d` has length {}",
|
||||
"Debug assert: expected normalized direction, but `d` has length {}",
|
||||
d.length()
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user