diff options
author | Daniel Salazar <zanqdo@gmail.com> | 2010-02-10 00:05:59 +0300 |
---|---|---|
committer | Daniel Salazar <zanqdo@gmail.com> | 2010-02-10 00:05:59 +0300 |
commit | 6d833bced25743a4b92cd439cb20f8220f12f475 (patch) | |
tree | faeb08b57d2d892dfbd9a314f2ba1ce1d58593b5 /release | |
parent | 68bb7e38ab2fd106120b675c2c2e82457c7ea89e (diff) |
Better default resolutions for UV Sphere and Torus primitives (nice square
faces)
Torus is generated flat shaded like the rest of primitives for easier
tweaking of resolution and consistency with the rest of the primitives
Diffstat (limited to 'release')
-rw-r--r-- | release/scripts/op/add_mesh_torus.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/release/scripts/op/add_mesh_torus.py b/release/scripts/op/add_mesh_torus.py index 59e40fbd628..3665f4fd786 100644 --- a/release/scripts/op/add_mesh_torus.py +++ b/release/scripts/op/add_mesh_torus.py @@ -92,7 +92,7 @@ class AddTorus(bpy.types.Operator): default=48, min=3, max=256) minor_segments = IntProperty(name="Minor Segments", description="Number of segments for the minor ring of the torus", - default=16, min=3, max=256) + default=12, min=3, max=256) use_abso = BoolProperty(name="Use Int+Ext Controls", description="Use the Int / Ext controls for torus dimensions", default=False) @@ -121,6 +121,7 @@ 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 |