From 5208fe9f300d238d9c87b7cc624e0d483d221907 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Wed, 29 Jan 2020 13:24:47 +1100 Subject: io_scene_fbx: Fix incorrect identity use --- io_scene_fbx/import_fbx.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'io_scene_fbx') 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): -- cgit v1.2.3