File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import numpy as np
22
3+ from ..constants import log
34from .. import util
45
56
@@ -86,9 +87,14 @@ def append_mesh():
8687 texture = np .array (current ['vt' ], dtype = np .float64 )
8788 # make sure vertex texture is the right shape
8889 # AKA (len(vertices), dimension)
89- texture = texture .reshape ((len (vertices ), - 1 ))
90- # save vertex texture with correct ordering
91- loaded ['metadata' ]['vertex_texture' ] = texture [vert_order ]
90+ try :
91+ texture = texture .reshape ((len (vertices ), - 1 ))
92+ # save vertex texture with correct ordering
93+ loaded ['metadata' ]['vertex_texture' ] = texture [vert_order ]
94+ except ValueError :
95+ log .warning (
96+ 'Texture information seems broken: %s' % file_obj .name
97+ )
9298
9399 # build face groups information
94100 # faces didn't move around so we don't have to reindex
You can’t perform that action at this time.
0 commit comments