Browse Source

Added workaround to OBJ converter for cross-OS path separator incompatibilities.

See discussion at issue #1165
alteredq 13 years ago
parent
commit
e7829ee9fa
1 changed files with 1 additions and 1 deletions
  1. 1 1
      utils/exporters/obj/convert_obj_three.py

+ 1 - 1
utils/exporters/obj/convert_obj_three.py

@@ -353,7 +353,7 @@ def veckey3(v):
 # MTL parser
 # #####################################################
 def texture_relative_path(fullpath):
-    texture_file = os.path.basename(fullpath)
+    texture_file = os.path.basename(fullpath.replace("\\", "/"))
     return texture_file
 
 def parse_mtl(fname):