diff --git a/render_povray/render.py b/render_povray/render.py
index 0ac16be5e4eb2f76b70b6ed2f49ba6ab43c8d1af..3dc508e1d087d4a43092fc65c90047a8cf1aa160 100644
--- a/render_povray/render.py
+++ b/render_povray/render.py
@@ -1115,7 +1115,7 @@ def write_pov(filename, scene=None, info_callback=None):
                     indices = ((0, 1, 2),)
 
                 for i1, i2, i3 in indices:
-                    if f.use_smooth:
+                    if me.faces[fi].use_smooth:
                         file.write(',\n')
                         tabWrite('<%d,%d,%d>' %\
                         (uniqueNormals[verts_normals[fv[i1]]][0],\