From ec113bd348e44dd29616253e7ac5c2e1b687cd15 Mon Sep 17 00:00:00 2001 From: kts of kettek Date: Sat, 29 Jan 2022 16:30:36 -0800 Subject: [PATCH] Assign decoration rotation --- Engine/src/data/segment.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Engine/src/data/segment.ts b/Engine/src/data/segment.ts index f591aa2..e8dcd9e 100644 --- a/Engine/src/data/segment.ts +++ b/Engine/src/data/segment.ts @@ -48,6 +48,7 @@ export class SegmentDecoration { flip: boolean timeOffset: number = 0 speed: number = 1.0 + rotation: number = 0 constructor(o: any) { this.decor = o.decor this.decoration = o.decoration @@ -61,6 +62,9 @@ export class SegmentDecoration { if (!isNaN(o.speed)) { this.speed = o.speed } + if (!isNaN(o.rotation)) { + this.rotation = o.rotation + } } }