From 5e9944164d52eefc7cda8aa8d042da111aaa68cc Mon Sep 17 00:00:00 2001
From: Campbell Barton <ideasman42@gmail.com>
Date: Tue, 16 Mar 2010 12:44:46 +0000
Subject: [PATCH] no need to set flag anymore

---
 add_mesh_diamond.py       | 2 --
 add_mesh_star.py          | 2 --
 io_mesh_raw/import_raw.py | 1 -
 3 files changed, 5 deletions(-)

diff --git a/add_mesh_diamond.py b/add_mesh_diamond.py
index e4ce48437..af6782f39 100644
--- a/add_mesh_diamond.py
+++ b/add_mesh_diamond.py
@@ -130,7 +130,6 @@ class AddDiamond(bpy.types.Operator):
 		default=1.0, min=0.01, max=100.0)
 
 	def execute(self, context):
-    
 		verts_loc, faces = add_diamond(self.properties.segments,
 			self.properties.girdle_radius,
 			self.properties.table_radius,
@@ -142,7 +141,6 @@ class AddDiamond(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
 
 		# ugh
diff --git a/add_mesh_star.py b/add_mesh_star.py
index d1baabfe0..5510307d9 100644
--- a/add_mesh_star.py
+++ b/add_mesh_star.py
@@ -131,7 +131,6 @@ class AddStar(bpy.types.Operator):
 		default=0.5, min=0.01, max=100.0)
 
 	def execute(self, context):
-    
 		verts_loc, faces = add_star(self.properties.points,
 			self.properties.outer_radius,
 			self.properties.innter_radius,
@@ -142,7 +141,6 @@ class AddStar(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
 
diff --git a/io_mesh_raw/import_raw.py b/io_mesh_raw/import_raw.py
index fc1bddc79..e4bbf6edd 100644
--- a/io_mesh_raw/import_raw.py
+++ b/io_mesh_raw/import_raw.py
@@ -93,7 +93,6 @@ def readMesh(filename, objName):
     mesh.add_geometry(int(len(verts)), 0, int(len(faces)))
     mesh.verts.foreach_set("co", unpack_list(verts))
     mesh.faces.foreach_set("verts_raw", unpack_face_list(faces))
-    mesh.faces.foreach_set("smooth", [False] * len(mesh.faces))
 
     return mesh
 
-- 
GitLab