fix for [#11542] "Add -> Mesh -> Torus" adds corrupt mesh

previous fix only worked in object mode
This commit is contained in:
Campbell Barton 2008-05-16 13:05:36 +00:00
parent ff84d868a1
commit 58e6861aea

@ -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()