fixed uninitialized local variable

This commit is contained in:
joric 2018-01-20 03:22:03 +05:00
parent 3581bdc6b9
commit 3e8cf5e570

View File

@ -545,10 +545,10 @@ def import_node(node, parent):
else:
ob.data.materials.append(mat)
# assign uv images
for uv_face in ob.data.uv_textures.active.data:
if mat.active_texture:
uv_face.image = mat.active_texture.image
# assign uv images
for uv_face in ob.data.uv_textures.active.data:
if mat.active_texture:
uv_face.image = mat.active_texture.image
if len(node['meshes']) and postprocess: