diff options
author | Robert Guetzkow <gitcommit@outlook.de> | 2020-04-07 14:36:51 +0300 |
---|---|---|
committer | Robert Guetzkow <gitcommit@outlook.de> | 2020-04-07 16:35:24 +0300 |
commit | fb6d7c4ed81bc58d15ab81f59292b14f86073bd9 (patch) | |
tree | 57de6606a02415ca1a2433025c71422c1d37dc52 /archipack | |
parent | a6fef4b74d2d2fca2edb8d8d340f8ad799c111f3 (diff) |
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
Diffstat (limited to 'archipack')
-rw-r--r-- | archipack/archipack_floor.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/archipack/archipack_floor.py b/archipack/archipack_floor.py index 23a10b32..821c7c4b 100644 --- a/archipack/archipack_floor.py +++ b/archipack/archipack_floor.py @@ -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: |