Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 571830838b6c0b1c551b9af44ca71d3454031c6c
https://github.com/WebKit/WebKit/commit/571830838b6c0b1c551b9af44ca71d3454031c6c
Author: Jean Haberer <[email protected]>
Date: 2026-05-07 (Thu, 07 May 2026)
Changed paths:
M LayoutTests/model-element/model-element-animations-loop-expected.txt
M LayoutTests/model-element/model-element-animations-loop.html
M Source/WebKit/WebKitSwift/RealityKit/WKRKEntity.swift
Log Message:
-----------
Animated models unexpectedly loop back automatically
https://bugs.webkit.org/show_bug.cgi?id=314059
rdar://176190998
Reviewed by Etienne Segonzac.
Previously, when a non-looping animation completed, a new paused animation
controller was created at frame 0, causing the entity to visually snap back
to its initial pose. Now the controller is released on completion so the
entity holds its final frame. The animation resource is retained so that
setting currentTime or paused after completion lazily recreates the
controller, preserving the ability to replay.
* LayoutTests/model-element/model-element-animations-loop-expected.txt:
* LayoutTests/model-element/model-element-animations-loop.html:
* Source/WebKit/WebKitSwift/RealityKit/WKRKEntity.swift:
(WKRKEntity.backingAnimation):
(WKRKEntity.backingCurrentTime):
(WKRKEntity.paused):
(WKRKEntity.currentTime):
(WKRKEntity.setUpAnimationWithAutoPlay(_:)):
Canonical link: https://commits.webkit.org/312777@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications