Skip to content

Commit e844edb

Browse files
committed
fix: resolve duplicate transform decomposition and fix indentation
1 parent f74dcd7 commit e844edb

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

node-graph/libraries/vector-types/src/vector/style.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -463,7 +463,7 @@ impl Stroke {
463463
join: if time < 0.5 { self.join } else { other.join },
464464
join_miter_limit: self.join_miter_limit + (other.join_miter_limit - self.join_miter_limit) * time,
465465
align: if time < 0.5 { self.align } else { other.align },
466-
transform: {
466+
transform: {
467467
// Decompose into scale/rotation/skew and interpolate each component separately.
468468
// We do this instead of linear matrix interpolation because that passes through a zero matrix
469469
// (and thus a division by 0 when rendering) when transforms have opposing rotations (e.g. 0° vs 180°).

node-graph/nodes/vector/src/vector_nodes.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1282,8 +1282,6 @@ async fn solidify_stroke(_: impl Ctx, content: Table<Vector>) -> Table<Vector> {
12821282

12831283
// We set the solidified stroke's fill to the stroke's color and without a stroke.
12841284
if let Some(stroke) = vector.style.stroke() {
1285-
// We set the solidified stroke's fill to the stroke's color and without a stroke.
1286-
if let Some(stroke) = vector.style.stroke() {
12871285
let mut paint = stroke.paint.clone();
12881286

12891287
// Remap gradient start/end from the original bounding box space to the new solidified bounding box space
@@ -1307,7 +1305,6 @@ async fn solidify_stroke(_: impl Ctx, content: Table<Vector>) -> Table<Vector> {
13071305
solidified_stroke.style.set_fill(paint);
13081306
solidified_stroke.style.clear_stroke();
13091307
}
1310-
}
13111308

13121309
let stroke_row = TableRow {
13131310
element: solidified_stroke,

0 commit comments

Comments
 (0)