[Bf-extensions-cvs] [b322cc26] blender-v2.82-release: io_scene_fbx: Fix incorrect identity use

Campbell Barton noreply at git.blender.org
Wed Jan 29 03:29:01 CET 2020


Commit: b322cc269cafc208294355ea79db714822addf38
Author: Campbell Barton
Date:   Wed Jan 29 13:24:47 2020 +1100
Branches: blender-v2.82-release
https://developer.blender.org/rBAb322cc269cafc208294355ea79db714822addf38

io_scene_fbx: Fix incorrect identity use

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

M	io_scene_fbx/import_fbx.py

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

diff --git a/io_scene_fbx/import_fbx.py b/io_scene_fbx/import_fbx.py
index 32b887c1..1c3447ef 100644
--- a/io_scene_fbx/import_fbx.py
+++ b/io_scene_fbx/import_fbx.py
@@ -1188,7 +1188,7 @@ def blen_read_geom_layer_normal(fbx_obj, mesh, xform=None):
                 for pidx, p in enumerate(mesh.polygons):
                     for lidx in range(p.loop_start, p.loop_start + p.loop_total):
                         mesh.loops[lidx].normal[:] = bdata[pidx]
-            elif blen_data_type is "Vertices":
+            elif blen_data_type == "Vertices":
                 # We have to copy vnors to lnors! Far from elegant, but simple.
                 for l in mesh.loops:
                     l.normal[:] = bdata[l.vertex_index]
@@ -2633,7 +2633,7 @@ def load(operator, context, filepath="",
         return [(c_found[0], c_found[1], c_type)
                 for (c_uuid, c_type) in dct.get(fbx_uuid, ())
                 # 0 is used for the root node, which isnt in fbx_table_nodes
-                for c_found in (() if c_uuid is 0 else (fbx_table_nodes.get(c_uuid, (None, None)),))
+                for c_found in (() if c_uuid == 0 else (fbx_table_nodes.get(c_uuid, (None, None)),))
                 if (fbx_id is None) or (c_found[0] and c_found[0].id == fbx_id)]
 
     def connection_filter_forward(fbx_uuid, fbx_id):



More information about the Bf-extensions-cvs mailing list