Explorar o código

fix bug where converter broke when flattening fbx models (#9380)

Anup Bishnoi %!s(int64=9) %!d(string=hai) anos
pai
achega
7a985fe294
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      utils/converters/fbx/convert_to_threejs.py

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

@@ -1505,7 +1505,8 @@ def generate_non_scene_output(scene):
       'normals' : [] if nnormals <= 0 else normal_values,
       'colors' : [] if ncolors <= 0 else color_values,
       'uvs' : uv_values,
-      'faces' : faces
+      'faces' : faces,
+      'textures': {}
     }
 
     if option_pretty_print: