Update vec dragger ui

This commit is contained in:
Connor Slade
2024-11-22 21:54:40 -05:00
parent 3a15f4cbeb
commit fc2054b7ca
2 changed files with 7 additions and 6 deletions

View File

@@ -10,7 +10,7 @@
- [x] Optimize slicer (BVH?)
- [x] ehh just throw rayon on it
- [x] Actually do the BVH
- [ ] Allow saving / loading projects
- [x] Allow saving / loading projects
- [x] Allow deleting objects
- [ ] Use instancing both for object mesh storage and rendering
- [x] Less internal dependence on GOO format
@@ -87,3 +87,4 @@
- [x] Refactor plugins to post processors
- [ ] Update readme
- [ ] Make post processing async
- [ ] Instance meshes in save files / rendering

View File

@@ -38,7 +38,7 @@ pub fn vec2_dragger<Num: Numeric>(
) {
ui.horizontal(|ui| {
ui.add(func(DragValue::new(&mut val[0])));
ui.label("x");
ui.label("×");
ui.add(func(DragValue::new(&mut val[1])));
});
}
@@ -50,9 +50,9 @@ pub fn vec3_dragger<Num: Numeric>(
) {
ui.horizontal(|ui| {
ui.add(func(DragValue::new(&mut val[0])));
ui.label("x");
ui.label("×");
ui.add(func(DragValue::new(&mut val[1])));
ui.label("x");
ui.label("×");
ui.add(func(DragValue::new(&mut val[2])));
});
}
@@ -66,9 +66,9 @@ pub fn vec3_dragger_proportional(
let (x, y, z) = (val[0], val[1], val[2]);
ui.add(func(DragValue::new(&mut val[0])));
ui.label("x");
ui.label("×");
ui.add(func(DragValue::new(&mut val[1])));
ui.label("x");
ui.label("×");
ui.add(func(DragValue::new(&mut val[2])));
if x != val[0] {