diff --git a/io_scene_fbx/import_fbx.py b/io_scene_fbx/import_fbx.py index 74555173cf476ba6fe89f05a1f26acdd0190afe3..76363a35df64490ce06470410618a4fddb4a33c2 100644 --- a/io_scene_fbx/import_fbx.py +++ b/io_scene_fbx/import_fbx.py @@ -474,7 +474,7 @@ def blen_read_geom_layer_uv(fbx_obj, mesh): def blen_read_geom_layer_smooth(fbx_obj, mesh): fbx_layer = elem_find_first(fbx_obj, b'LayerElementSmoothing') - + if fbx_layer is None: return False @@ -487,6 +487,10 @@ def blen_read_geom_layer_smooth(fbx_obj, mesh): layer_id = b'Smoothing' fbx_layer_data = elem_prop_first(elem_find_first(fbx_layer, layer_id)) + # udk has 'Direct' mapped, with no Smoothing, not sure why, but ignore these + if fbx_layer_data is None: + return False + if fbx_layer_mapping == b'ByEdge': blen_data = mesh.edges ok_smooth = blen_read_geom_array_mapped_edge(