Skip to content

Commit

Permalink
Blender: Fix error when exporting in non-ASCII path
Browse files Browse the repository at this point in the history
  • Loading branch information
Arbos committed Mar 24, 2023
1 parent feea308 commit ba1544f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions blender-2.8-addon/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ def execute(self, context):
import os

fbx2nw_path = os.path.join(os.path.dirname(os.path.realpath(__file__)), "fbx2nw")
args = [fbx2nw_path, tmpfbx, "-o", os.path.basename(self.filepath)]
args = [fbx2nw_path, "nwn2mdk-tmp.fbx", "-o", os.path.basename(self.filepath)]
working_dir = os.path.dirname(self.filepath)

with open(os.path.join(working_dir, "log.txt"), "w") as log:
Expand Down Expand Up @@ -372,7 +372,7 @@ def execute(self, context):


fbx2nw_path = os.path.join(os.path.dirname(os.path.realpath(__file__)), "fbx2nw")
args = [fbx2nw_path, tmpfbx, "-o", os.path.basename(self.filepath)]
args = [fbx2nw_path, "nwn2mdk-tmp.fbx", "-o", os.path.basename(self.filepath)]

with open(os.path.join(working_dir, "log.txt"), "w") as log:
log.write("Exporting with Blender ")
Expand Down

0 comments on commit ba1544f

Please sign in to comment.