mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-15 22:28:10 +08:00
Fix regression causing pasted images to have a zero-size transform (#2238)
* Use the identity matrix as the default for an image frame * Fix all usages to be equivalent to their pre-refactor versions, opting to keep ZERO not IDENTITY as the default image size --------- Co-authored-by: Keavon Chambers <keavon@keavon.com>
This commit is contained in:
@@ -161,7 +161,7 @@ fn node_registry() -> HashMap<ProtoNodeIdentifier, HashMap<NodeIOTypes, NodeCons
|
||||
let empty_image = ImageFrame {
|
||||
image: Image::new(bounds.x, bounds.y, Color::BLACK),
|
||||
transform,
|
||||
..Default::default()
|
||||
alpha_blending: Default::default(),
|
||||
};
|
||||
let empty_image = ImageFrameTable::new(empty_image);
|
||||
let final_image = ClonedNode::new(empty_image).then(complete_node);
|
||||
|
||||
Reference in New Issue
Block a user