浏览代码

Update convert_to_threejs.py (#9175)

syntax error for "print" on:
Line 388
Line 2066
pandakub 9 年之前
父节点
当前提交
6c12df3604
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      utils/converters/fbx/convert_to_threejs.py

+ 2 - 2
utils/converters/fbx/convert_to_threejs.py

@@ -385,7 +385,7 @@ def generate_material_object(material):
         }
 
     else:
-        print "Unknown type of Material", getMaterialName(material)
+        print ("Unknown type of Material"), getMaterialName(material)
 
     # default to Lambert Material if the current Material type cannot be handeled
     if not material_type:
@@ -2063,7 +2063,7 @@ def copy_textures(textures):
             shutil.copyfile(url, saveFilename)
             texture_dict[url] = True
         except IOError as e:
-            print "I/O error({0}): {1} {2}".format(e.errno, e.strerror, url)
+            print ("I/O error({0}): {1} {2}").format(e.errno, e.strerror, url)
 
 def findFilesWithExt(directory, ext, include_path = True):
     ext = ext.lower()