🐛 Fix transform matrix being carried to non-children shapes

This commit is contained in:
Belén Albeza 2024-11-13 10:56:00 +01:00
parent 03acfc2b3c
commit 49b4eabe8b
3 changed files with 42 additions and 24 deletions

View file

@ -1,5 +1,7 @@
use uuid::Uuid;
use crate::state::State;
#[derive(Debug, Clone, Copy)]
pub enum Kind {
None,
@ -53,7 +55,7 @@ impl Matrix {
#[derive(Debug, Clone)]
pub struct Shape {
pub id: Uuid,
pub shapes: Vec::<Uuid>,
pub shapes: Vec<Uuid>,
pub kind: Kind,
pub selrect: Rect,
pub transform: Matrix,