diff --git a/src/vvedit/editor_ui.rs b/src/vvedit/editor_ui.rs index f0a6644..01f18fc 100644 --- a/src/vvedit/editor_ui.rs +++ b/src/vvedit/editor_ui.rs @@ -152,7 +152,7 @@ pub fn edit_window_ui( fn color_from(egui_color: Hsva) -> Color { let rgb = rgb_from_hsv((egui_color.h, egui_color.s, egui_color.v)); - return Color::rgb_linear_from_array(rgb); + return Color::rgb_from_array(rgb); } fn egui_color_from(color: Color) -> Hsva { diff --git a/src/vvedit/ui_extensions.rs b/src/vvedit/ui_extensions.rs index 82496d8..1286442 100644 --- a/src/vvedit/ui_extensions.rs +++ b/src/vvedit/ui_extensions.rs @@ -283,5 +283,5 @@ pub fn test_string_tree() { assert!(dbg!(tester.add(child2, Some(parent2)))); tester = dbg!(tester); assert!(dbg!(tester.move_branch(parent2, parent))); - tester = dbg!(tester); + dbg!(tester); } diff --git a/src/vvlib/octtree.rs b/src/vvlib/octtree.rs index 141f5d7..6b77185 100644 --- a/src/vvlib/octtree.rs +++ b/src/vvlib/octtree.rs @@ -597,7 +597,9 @@ pub fn test_removal() { let mut test_tree = OctTree::new(Vec3::ZERO, 0); test_tree.set_voxel_at_location(Vec3::splat(10.), 5); test_tree.remove_voxel(Vec3::ZERO); - assert_eq!(test_tree.size, 1); + assert_eq!(test_tree.collect_voxels().len(), 1); + + // NEEDS IMPROVEMENT } #[test]