Skip to content

Commit

Permalink
add pause for animation-mixer if not animated
Browse files Browse the repository at this point in the history
  • Loading branch information
Algorush committed Jan 19, 2024
1 parent aa34197 commit 8608ee6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/aframe-streetmix-parsers.js
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,9 @@ function createSidewalkClonedVariants (segmentWidthInMeters, density, elevationP

if (animated) {
addLinearStreetAnimation(placedObjectEl, 1.4, streetLength, xVal, yVal, zVal, animationDirection);
} else {
// solution for pause animation-mixer animation from donmccurdy
placedObjectEl.setAttribute('animation-mixer', {timeScale: 0});
}
dividerParentEl.append(placedObjectEl);
}
Expand Down

0 comments on commit 8608ee6

Please sign in to comment.