From 07b1c40b74f9d4cf6615de6734d51f71061a2bc8 Mon Sep 17 00:00:00 2001 From: Alexander Goryushkin Date: Sun, 5 Nov 2023 17:53:12 -0300 Subject: [PATCH] fix car animation --- src/aframe-streetmix-parsers.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/aframe-streetmix-parsers.js b/src/aframe-streetmix-parsers.js index edf365a6a..32352771e 100644 --- a/src/aframe-streetmix-parsers.js +++ b/src/aframe-streetmix-parsers.js @@ -391,6 +391,7 @@ function createDriveLaneElement (variantList, positionX, segmentWidthInMeters, s let [lineVariant, direction, carType] = variantList; if (variantList.length === 2) { carType = direction; + direction = lineVariant; } const rotationVariants = {