diff options
author | Campbell Barton <ideasman42@gmail.com> | 2016-01-26 02:02:56 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2016-01-26 02:02:56 +0300 |
commit | 9f49cd1cb06a93dda151a74741db383e4bc174d7 (patch) | |
tree | 225db939d505580a5c13bf48e512027de764398c | |
parent | 5a08a2e1856875d99cc99be44b955500faccf339 (diff) |
Fix T47236: Error importing OBJ
Missed this in recent bytes -> string conversion
-rw-r--r-- | io_scene_obj/__init__.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/io_scene_obj/__init__.py b/io_scene_obj/__init__.py index 34b936f0..aff0b345 100644 --- a/io_scene_obj/__init__.py +++ b/io_scene_obj/__init__.py @@ -142,7 +142,7 @@ class ImportOBJ(bpy.types.Operator, ImportHelper, IOOBJOrientationHelper): if bpy.data.is_saved and context.user_preferences.filepaths.use_relative_paths: 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) |