[Bf-extensions-cvs] [a919803] master: BugFix paths

Eugenio Pignataro noreply at git.blender.org
Mon Oct 24 22:04:38 CEST 2016


Commit: a9198033ed1e6f4a718b744107e73cb36f40ceb7
Author: Eugenio Pignataro
Date:   Mon Oct 24 17:04:31 2016 -0300
Branches: master
https://developer.blender.org/rBACa9198033ed1e6f4a718b744107e73cb36f40ceb7

BugFix paths

===================================================================

M	oscurart_mesh_cache_tools.py

===================================================================

diff --git a/oscurart_mesh_cache_tools.py b/oscurart_mesh_cache_tools.py
index 01a60a4..08cda68 100644
--- a/oscurart_mesh_cache_tools.py
+++ b/oscurart_mesh_cache_tools.py
@@ -87,9 +87,8 @@ def CargaAutoLoadPC(dummy):
                         MOD.up_axis = "POS_Z"
                         MOD.flip_axis = set(())
                         MOD.frame_start = bpy.context.scene.pc_pc2_start  
-                        os.chdir(os.path.dirname(bpy.data.groups[gr.name].library.filepath).replace("//",os.path.dirname(bpy.data.filepath)+os.sep)) #lib folder path
-                        mcf = os.path.dirname(bpy.data.filepath) + os.sep + bpy.context.scene.pc_pc2_folder #absolute mesh cache folder
-                        MOD.filepath = "//%s%s%s.pc2" % (os.path.relpath(mcf),os.sep,ob.name)  
+                        abspath = os.path.abspath(bpy.path.abspath("//"+bpy.context.scene.pc_pc2_folder))
+                        MOD.filepath = "%s/%s.pc2" % (abspath,ob.name)



More information about the Bf-extensions-cvs mailing list