Explorar o código

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

See discussion at issue #1165
alteredq %!s(int64=14) %!d(string=hai) anos
pai
achega
e7829ee9fa
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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):

粤ICP备19079148号