Skip to content

Commit abab145

Browse files
committed
Fix the Rasterize node to not ignore raster graphical data
1 parent 7e0a274 commit abab145

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

editor/src/messages/portfolio/document/node_graph/node_properties.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -480,6 +480,10 @@ pub fn footprint_widget(parameter_widgets_info: ParameterWidgetsInfo, extra_widg
480480
resolution_widgets.push(
481481
NumberInput::new(Some((footprint.resolution.as_dvec2() / bounds).x * 100.))
482482
.label("Resolution")
483+
.mode_range()
484+
.min(0.)
485+
.range_min(Some(1.))
486+
.range_max(Some(100.))
483487
.unit("%")
484488
.on_update(update_value(
485489
move |x: &NumberInput| {

node-graph/gstd/src/wasm_application_io.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -245,6 +245,7 @@ where
245245
let resolution = footprint.resolution;
246246
let render_params = RenderParams {
247247
culling_bounds: None,
248+
for_export: true,
248249
..Default::default()
249250
};
250251

node-graph/gsvg-renderer/src/renderer.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,11 +159,11 @@ pub struct RenderParams {
159159
pub thumbnail: bool,
160160
/// Don't render the rectangle for an artboard to allow exporting with a transparent background.
161161
pub hide_artboards: bool,
162-
/// Are we exporting? Causes the text above an artboard to be hidden.
162+
/// Are we exporting as a standalone SVG?
163163
pub for_export: bool,
164164
/// Are we generating a mask in this render pass? Used to see if fill should be multiplied with alpha.
165165
pub for_mask: bool,
166-
/// Are we generating a mask for alignment? Used to prevent unnecesary transforms in masks
166+
/// Are we generating a mask for alignment? Used to prevent unnecessary transforms in masks
167167
pub alignment_parent_transform: Option<DAffine2>,
168168
}
169169

0 commit comments

Comments
 (0)