[Bf-extensions-cvs] [9f49cd1] master: Fix T47236: Error importing OBJ
Campbell Barton
noreply at git.blender.org
Tue Jan 26 00:11:00 CET 2016
Commit: 9f49cd1cb06a93dda151a74741db383e4bc174d7
Author: Campbell Barton
Date: Tue Jan 26 10:02:56 2016 +1100
Branches: master
https://developer.blender.org/rBA9f49cd1cb06a93dda151a74741db383e4bc174d7
Fix T47236: Error importing OBJ
Missed this in recent bytes -> string conversion
===================================================================
M io_scene_obj/__init__.py
===================================================================
diff --git a/io_scene_obj/__init__.py b/io_scene_obj/__init__.py
index 34b936f..aff0b34 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)
More information about the Bf-extensions-cvs
mailing list