integrated grid shape in shape-tool

This commit is contained in:
0SlowPoke0
2025-07-19 00:52:53 +05:30
parent 561b671f8d
commit 3bc206843a
8 changed files with 232 additions and 10 deletions

View File

@@ -56,8 +56,8 @@ impl AsI64 for f64 {
#[widget(Radio)]
pub enum GridType {
#[default]
Rectangular,
Isometric,
Rectangular = 0,
Isometric = 1,
}
#[repr(C)]

View File

@@ -127,7 +127,7 @@ impl PointDomain {
}
pub fn push(&mut self, id: PointId, position: DVec2) {
debug_assert!(!self.id.contains(&id));
// debug_assert!(!self.id.contains(&id));
self.id.push(id);
self.position.push(position);
}