no need to set flat shading for faces manually
authorBrecht Van Lommel <brechtvanlommel@pandora.be>
Tue, 16 Mar 2010 17:59:39 +0000 (17:59 +0000)
committerBrecht Van Lommel <brechtvanlommel@pandora.be>
Tue, 16 Mar 2010 17:59:39 +0000 (17:59 +0000)
(commit 27534 by Campbell from render25 branch)

release/scripts/op/add_mesh_torus.py

index e7c7ac86ee6b98516eaf1046e7a307df97942add..825b23c49e1ab0b098375e3eeabac9e055ac30a8 100644 (file)
@@ -120,7 +120,6 @@ class AddTorus(bpy.types.Operator):
         mesh.add_geometry(int(len(verts_loc) / 3), 0, int(len(faces) / 4))
         mesh.verts.foreach_set("co", verts_loc)
         mesh.faces.foreach_set("verts_raw", faces)
-        mesh.faces.foreach_set("smooth", [False] * len(mesh.faces))
 
         scene = context.scene