Fix T45516: Our index generators can produce values below -1, consider all negative indices as 'skip' flags.

This commit is contained in:
Bastien Montagne 2015-08-05 14:29:52 +02:00
parent 23108a80d7
commit 7f55da7477
Notes: blender-bot 2023-02-14 19:54:16 +01:00
Referenced by issue #45516, FBX import of Akeytsu files  fails.
1 changed files with 1 additions and 1 deletions

View File

@ -710,7 +710,7 @@ def blen_read_geom_array_setattr(generator, blen_data, blen_attr, fbx_data, stri
def check_skip(blen_idx, fbx_idx):
nonlocal print_error
if fbx_idx == -1:
if fbx_idx < 0: # Negative values mean 'skip'.
return True
if blen_idx > max_idx:
if print_error: