SamusAranX / USDConverter

A USDZ-to-OBJ converter powered by Model I/O
MIT License
51 stars 15 forks source link

Not work in macOS Ventura and Monterey #2

Open vml933 opened 12 months ago

vml933 commented 12 months ago

Hi: I download the latest version, It work find in MacOS: Sonoma, but not work in previous MacOS: Ventura and Monterey, OBJ's MTL file content has some problem. but previous USDConverter version work fine in Ventura and Monterey.

Thanks for your help.

vml933 commented 11 months ago

Update USDConverter.swift Line: 179 :

return duplicates.map({ $0.name }).contains(matName)

to

if #available(macOS 14.0, *){
    return duplicates.map({ $0.name }).contains(matName)
}else{
    return duplicates.map({ $0.simpleName }).contains(matName)
}

Fix the MTL file problem, Any better solution?