Skip to content
Snippets Groups Projects
Commit 024f12e5 authored by Campbell Barton's avatar Campbell Barton
Browse files

fix for UDK FBX files which have smoothing layers with no data.

parent 704263ee
No related branches found
No related tags found
No related merge requests found
......@@ -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(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment