Skip to content

Mesh default export extension should be obj instead of obf #87

Closed

Description

@yizhenwang2002

Code

def exportMesh(obj: Mesh, fp: str, extension=".obf") -> List[int]:
if not extension:
extension = ".obf"
with open(f"{fp}{extension}", "wt", encoding="utf8", newline="") as f:
f.write(obj.export())
return [obj.path_id]

Bug
The Mesh object should export the file with extension .obj. I think this is a typo.

This is what it looks like in AssetStudio

https://github.com/Perfare/AssetStudio/blob/0e1a886e0b1bae9d3e990b7b686e10f1c105e65d/AssetStudioGUI/Exporter.cs#L127-L133

Activity

  1. K0lb3 commented on Feb 13, 2022

    @K0lb3
    Owner

    You're right, it should be .obj.
    Thanks for mentioning the issue.

  2. added a commit that references this issue on Sep 14, 2025
    10fbaae
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions