ScanMountGoat / ssbh_editor

View, edit, and validate models for Smash Ultimate
MIT License
32 stars 4 forks source link

Reorder XYZW in Anim Editor Graph #133

Open zrksyd opened 1 year ago

zrksyd commented 1 year ago

In the legend of the ANIM editor graph, the legend should be ordered XYZW but it's ordered WXYZ instead.

ScanMountGoat commented 1 year ago

The values should already be added in the order XYZW. It looks like egui is using a B-tree internally, so I'm not sure if there's an easy way to fix this. It's probably happening because w < x < y < z alphabetically. https://github.com/emilk/egui/blob/da0a1787019cb28c26e969bc537a191f2ed302f3/crates/egui/src/widgets/plot/legend.rs#L155-L160