mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-17 23:38:06 +08:00
integrated grid shape in shape-tool
This commit is contained in:
@@ -56,8 +56,8 @@ impl AsI64 for f64 {
|
||||
#[widget(Radio)]
|
||||
pub enum GridType {
|
||||
#[default]
|
||||
Rectangular,
|
||||
Isometric,
|
||||
Rectangular = 0,
|
||||
Isometric = 1,
|
||||
}
|
||||
|
||||
#[repr(C)]
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user