Skip to content

Commit 2013017

Browse files
committed
[Model Element] Skip audio when loading entity
https://bugs.webkit.org/show_bug.cgi?id=294035 rdar://146899549 Reviewed by Mike Wyrzykowski. Pass in load option to skip audio. * Source/WebKit/WebKitSwift/RealityKit/WKRKEntity.swift: (WKRKEntity.load(from:withAttributionTaskID:completionHandler:)): Canonical link: https://commits.webkit.org/296025@main
1 parent 2f87d29 commit 2013017

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

Source/WebKit/WebKitSwift/RealityKit/WKRKEntity.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,10 @@ extension WKRKEntity {
6464
if let attributionTaskId {
6565
loadOptions.memoryAttributionID = attributionTaskId
6666
}
67+
#if canImport(RealityKit, _version: "403.0.9")
68+
loadOptions.featuresToSkip = [.audio]
69+
#endif
70+
6771
let loadedEntity = try await Entity(from: data, options: loadOptions)
6872
return WKRKEntity(loadedEntity)
6973
} catch {

0 commit comments

Comments
 (0)