Skip to content

Commit f867180

Browse files
committed
Fix bezier curve not colored
1 parent 323abde commit f867180

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/interpreter.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ export class Interpreter {
215215
const segments = curve.lookupValues(delta);
216216
const { position, facing } = segments[segments.length - 1];
217217
if (keyFrame.height === 0) {
218-
const strokes = segments.map((f, i) => new Stroke((segments[i - 1] || keyFrame).position, f.position));
218+
const strokes = segments.map((f, i) => new Stroke((segments[i - 1] || keyFrame).position, f.position, currentColor));
219219
return keyFrame = keyFrame.with({ position, facing, strokes: [...keyFrame.strokes, ...strokes] });
220220
}
221221
return keyFrame = keyFrame.with({ position, facing });

0 commit comments

Comments
 (0)