diff --git a/add_mesh_diamond.py b/add_mesh_diamond.py index e4ce484373bd789fd093a83de62dfa3089431ca6..af6782f39fd04f31756e85cb9df52420f5b177fb 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 d1baabfe0c249f0f26bf0bfb4714690b3fccac9b..5510307d9b3819d66e7aa3f6e0c583bcc6eedd3a 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 fc1bddc79fdbf61cef9e20e6c176d41fc747fdac..e4bbf6edd3bc61a9cf8f8f3841de70404cf208bf 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