[Bf-extensions-cvs] [59ff15b] master: now support relative path
Eugenio Pignataro
noreply at git.blender.org
Thu Oct 20 22:21:16 CEST 2016
Commit: 59ff15bd154023f36f8fb149be8cefb3dbce1044
Author: Eugenio Pignataro
Date: Thu Oct 20 17:14:32 2016 -0300
Branches: master
https://developer.blender.org/rBAC59ff15bd154023f36f8fb149be8cefb3dbce1044
now support relative path
===================================================================
M oscurart_mesh_cache_tools.py
===================================================================
diff --git a/oscurart_mesh_cache_tools.py b/oscurart_mesh_cache_tools.py
index 083c564..627806c 100644
--- a/oscurart_mesh_cache_tools.py
+++ b/oscurart_mesh_cache_tools.py
@@ -161,8 +161,10 @@ class OscEPc2ExporterPanel(View3DMCPanel, bpy.types.Panel):
def OscSetFolder(context, filepath):
fp = filepath if os.path.isdir(filepath) else os.path.dirname(filepath)
+ os.chdir(os.path.dirname(bpy.data.filepath))
+ rfp = os.path.relpath(fp)
for sc in bpy.data.scenes:
- sc.pc_pc2_folder = fp
+ sc.pc_pc2_folder = rfp
return {'FINISHED'}
More information about the Bf-extensions-cvs
mailing list