Skip to content

Commit 9de99b2

Browse files
committed
Update importer.py
1 parent a1b22c7 commit 9de99b2

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

simloader/importer.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,8 @@ def update_obj(scene, depsgraph=None):
143143
pattern = obj.SIMLOADER.pattern
144144
if obj.SIMLOADER.use_relative:
145145
pattern = bpy.path.abspath(pattern)
146+
# in case the blender file was created on windows system, but opened in linux system
147+
pattern = bpy.path.native_pathsep(pattern)
146148
fs = fileseq.FileSequence(pattern)
147149

148150
if obj.SIMLOADER.use_advance and obj.SIMLOADER.script_name:
@@ -182,4 +184,4 @@ def update_obj(scene, depsgraph=None):
182184
if not isinstance(meshio_mesh, meshio.Mesh):
183185
show_message_box('function preprocess does not return meshio object', "ERROR")
184186
continue
185-
update_mesh(meshio_mesh, obj.data)
187+
update_mesh(meshio_mesh, obj.data)

0 commit comments

Comments
 (0)