Fix T75394: Archipack update normals before beveling

The Archipack floor operator bpy.ops.archipack.floor() created a bmesh with
with normals that were zero in all components. This triggered an assert
when calling bmesh.ops.bevel(). Updating the normals prior to the call to
bmesh.ops.bevel() avoids this issue.

Reviewed By: stephen_leger

Differential Revision: https://developer.blender.org/D7364
This commit is contained in:
Robert Guetzkow 2020-04-07 13:36:51 +02:00
parent a6fef4b74d
commit fb6d7c4ed8
Notes: blender-bot 2023-02-14 18:58:51 +01:00
Referenced by issue #75394, Archipack floor preset crashes Blender debug build
1 changed files with 2 additions and 0 deletions

View File

@ -318,6 +318,8 @@ class FloorGenerator(CutAblePolygon, CutAbleGenerator):
for v in verts:
v.co.z = bottom
bm.normal_update()
# bevel
if d.bevel:
for v in bm.verts: