fix for [#11542] "Add -> Mesh -> Torus" adds corrupt mesh
previous fix only worked in object mode
This commit is contained in:
@@ -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()
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user