Skip to content
Snippets Groups Projects
Commit 9f49cd1c authored by Campbell Barton's avatar Campbell Barton
Browse files

Fix T47236: Error importing OBJ

Missed this in recent bytes -> string conversion
parent 5a08a2e1
No related branches found
No related tags found
No related merge requests found
...@@ -142,7 +142,7 @@ class ImportOBJ(bpy.types.Operator, ImportHelper, IOOBJOrientationHelper): ...@@ -142,7 +142,7 @@ class ImportOBJ(bpy.types.Operator, ImportHelper, IOOBJOrientationHelper):
if bpy.data.is_saved and context.user_preferences.filepaths.use_relative_paths: if bpy.data.is_saved and context.user_preferences.filepaths.use_relative_paths:
import os import os
keywords["relpath"] = os.path.dirname((bpy.data.path_resolve("filepath", False).as_bytes())) keywords["relpath"] = os.path.dirname(bpy.data.filepath)
return import_obj.load(context, **keywords) return import_obj.load(context, **keywords)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment