mirror of https://codeberg.org/topola/topola.git
feat(topola-egui): Paint constraint edges in thick white instead of offsetted yellow
This commit is contained in:
parent
84cdbba5d0
commit
63e1f7f25a
|
|
@ -391,13 +391,10 @@ impl<'a> Displayer<'a> {
|
||||||
for PrenavmeshConstraint(from_weight, to_weight) in
|
for PrenavmeshConstraint(from_weight, to_weight) in
|
||||||
navmesh.prenavmesh().constraints().iter()
|
navmesh.prenavmesh().constraints().iter()
|
||||||
{
|
{
|
||||||
let from = from_weight.pos + [100.0, 100.0].into();
|
|
||||||
let to = to_weight.pos + [100.0, 100.0].into();
|
|
||||||
|
|
||||||
self.painter.paint_line_segment(
|
self.painter.paint_line_segment(
|
||||||
from,
|
from_weight.pos,
|
||||||
to,
|
to_weight.pos,
|
||||||
egui::Stroke::new(1.0, egui::Color32::from_rgb(255, 255, 0)),
|
egui::Stroke::new(5.0, egui::Color32::from_rgb(255, 255, 255)),
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue