diff options
author | Campbell Barton <ideasman42@gmail.com> | 2008-05-16 17:05:36 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2008-05-16 17:05:36 +0400 |
commit | 58e6861aea5da8e5f08ca72443042178eb6dcec1 (patch) | |
tree | e505ad35a6fd58d2f0c823db15c184059bd4d97b /release/scripts/bpymodules | |
parent | ff84d868a15896bcfd48a949388bc978e4a57ce4 (diff) |
fix for [#11542] "Add -> Mesh -> Torus" adds corrupt mesh
previous fix only worked in object mode
Diffstat (limited to 'release/scripts/bpymodules')
-rw-r--r-- | release/scripts/bpymodules/BPyAddMesh.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/release/scripts/bpymodules/BPyAddMesh.py b/release/scripts/bpymodules/BPyAddMesh.py index ef42eab9e8f..901e68866cc 100644 --- a/release/scripts/bpymodules/BPyAddMesh.py +++ b/release/scripts/bpymodules/BPyAddMesh.py @@ -92,10 +92,11 @@ def add_mesh_simple(name, verts, edges, faces): ob_act.loc = cursor + me.calcNormals() + if is_editmode or Blender.Get('add_editmode'): EditMode(1) - else: # adding in object mode means we need to calc normals - me.calcNormals() + |