[Bf-extensions-cvs] [7f55da7] master: Fix T45516: Our index generators can produce values below -1, consider all negative indices as 'skip' flags.

Bastien Montagne noreply at git.blender.org
Wed Aug 5 14:31:04 CEST 2015


Commit: 7f55da7477d5dc42c620ded92c1237fe7ea611ad
Author: Bastien Montagne
Date:   Wed Aug 5 14:29:52 2015 +0200
Branches: master
https://developer.blender.org/rBA7f55da7477d5dc42c620ded92c1237fe7ea611ad

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

===================================================================

M	io_scene_fbx/import_fbx.py

===================================================================

diff --git a/io_scene_fbx/import_fbx.py b/io_scene_fbx/import_fbx.py
index e667693..d685b40 100644
--- a/io_scene_fbx/import_fbx.py
+++ b/io_scene_fbx/import_fbx.py
@@ -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:



More information about the Bf-extensions-cvs mailing list