forked from bartvdbraak/blender
fix for [#11542] "Add -> Mesh -> Torus" adds corrupt mesh
previous fix only worked in object mode
This commit is contained in:
parent
ff84d868a1
commit
58e6861aea
@ -92,10 +92,11 @@ def add_mesh_simple(name, verts, edges, faces):
|
|||||||
|
|
||||||
ob_act.loc = cursor
|
ob_act.loc = cursor
|
||||||
|
|
||||||
|
me.calcNormals()
|
||||||
|
|
||||||
if is_editmode or Blender.Get('add_editmode'):
|
if is_editmode or Blender.Get('add_editmode'):
|
||||||
EditMode(1)
|
EditMode(1)
|
||||||
else: # adding in object mode means we need to calc normals
|
|
||||||
me.calcNormals()
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user