Fix default value for the Output node (#1042)

* Fix default value for output node

* Don't set frame transform to zero

* Fix typo in hash function

* Clear frame on empty image

---------

Co-authored-by: Keavon Chambers <keavon@keavon.com>
This commit is contained in:
0HyperCube
2023-02-20 07:32:49 +00:00
committed by GitHub
parent bd89c12595
commit 5ad5ee61a3
4 changed files with 50 additions and 27 deletions

View File

@@ -374,11 +374,21 @@ mod image {
}
}
#[derive(Clone, Debug, PartialEq, DynAny, Default)]
#[derive(Clone, Debug, PartialEq, DynAny, Default, specta::Type)]
#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
pub struct ImageFrame {
pub image: Image,
pub transform: DAffine2,
}
impl ImageFrame {
pub const fn empty() -> Self {
Self {
image: Image::empty(),
transform: DAffine2::ZERO,
}
}
}
}
#[cfg(test)]