Skip to content

Commit

Permalink
Fix MainActor build errors
Browse files Browse the repository at this point in the history
  • Loading branch information
STREGA committed Mar 26, 2024
1 parent 92cbf7e commit 99ba3a2
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 4 deletions.
1 change: 1 addition & 0 deletions Sources/GateEngine/Physics/RawGeometry+Extensions.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
*/

extension RawGeometry {
@MainActor
public func generateCollisionTriangles() -> [CollisionTriangle] {
var positions: [Position3] = []
positions.reserveCapacity(indices.count * 3)
Expand Down
1 change: 0 additions & 1 deletion Sources/GateEngine/Scripting/Gravity/Gravity+Errors.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@

import Gravity

@MainActor
internal func errorCallback(
vm: OpaquePointer?,
errorType: error_type_t,
Expand Down
2 changes: 0 additions & 2 deletions Sources/GateEngine/Scripting/Gravity/Gravity+Files.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
import Foundation
import Gravity

@MainActor
internal func filenameCallback(
fileID: UInt32,
xData: UnsafeMutableRawPointer?
Expand All @@ -20,7 +19,6 @@ internal func filenameCallback(
}
}

@MainActor
internal func loadFileCallback(
file: UnsafePointer<CChar>!,
size: UnsafeMutablePointer<Int>!,
Expand Down
1 change: 0 additions & 1 deletion Sources/GateEngine/Scripting/Gravity/Gravity+Testing.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
#if DEBUG
import Gravity

@MainActor
internal func unittestCallback(
vm: OpaquePointer!,
errorType: error_type_t,
Expand Down

0 comments on commit 99ba3a2

Please sign in to comment.