Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -767,7 +767,11 @@ impl MessageHandler<DocumentMessage, DocumentMessageData<'_>> for DocumentMessag

responses.add(DocumentMessage::AddTransaction);

let image_frame = ImageFrame { image, ..Default::default() };
let image_frame = ImageFrame {
image,
transform: DAffine2::IDENTITY,
alpha_blending: Default::default(),
};
let layer = graph_modification_utils::new_image_layer(image_frame, layer_node_id, self.new_layer_parent(true), responses);

if let Some(name) = name {
Expand Down
2 changes: 1 addition & 1 deletion node-graph/gstd/src/brush.rs
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ fn brush(_: Footprint, image: ImageFrameTable<Color>, bounds: ImageFrameTable<Co
let opaque_image = ImageFrame {
image: Image::new(bbox.size().x as u32, bbox.size().y as u32, Color::WHITE),
transform: background_bounds,
..Default::default()
alpha_blending: Default::default(),
};
let mut erase_restore_mask = opaque_image;

Expand Down
2 changes: 1 addition & 1 deletion node-graph/gstd/src/raster.rs
Original file line number Diff line number Diff line change
Expand Up @@ -627,7 +627,7 @@ fn mandelbrot(footprint: Footprint) -> ImageFrameTable<Color> {
..Default::default()
},
transform: DAffine2::from_translation(offset) * DAffine2::from_scale(size),
..Default::default()
alpha_blending: Default::default(),
};

ImageFrameTable::new(result)
Expand Down
3 changes: 2 additions & 1 deletion node-graph/gstd/src/wasm_application_io.rs
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,8 @@ fn decode_image(_: (), data: Arc<[u8]>) -> ImageFrameTable<Color> {
height: image.height(),
..Default::default()
},
..Default::default()
transform: glam::DAffine2::IDENTITY,
alpha_blending: Default::default(),
};

ImageFrameTable::new(image)
Expand Down
2 changes: 1 addition & 1 deletion node-graph/interpreted-executor/src/node_registry.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down