-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Animation menu buttons #724
Conversation
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like there may be a regression here.
@@ -122,7 +125,22 @@ AFRAME.registerComponent("position-at-box-shape-border", { | |||
const scale = this.halfExtents[inverseHalfExtents[targetHalfExtentStr]] * distance; | |||
const targetScale = Math.min(2.0, Math.max(0.5, scale * tempParentWorldScale.x)); | |||
|
|||
this.target.scale.setScalar(targetScale / tempParentWorldScale.x); | |||
if (!this.prevScale && Math.abs(this.prevScale - targetScale) > 0.01) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This logic breaks if you spawn a duck from a spawner while you're in pause mode. It also breaks the dynamic scaling behavior that currently exists on non-spawner media objects.
…to feature/animate-pause-buttons
Follow-up to #696. Animates the scaling of the freeze menus.