Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Guetzkow <gitcommit@outlook.de>2020-04-07 14:36:51 +0300
committerRobert Guetzkow <gitcommit@outlook.de>2020-04-07 16:35:24 +0300
commitfb6d7c4ed81bc58d15ab81f59292b14f86073bd9 (patch)
tree57de6606a02415ca1a2433025c71422c1d37dc52 /archipack
parenta6fef4b74d2d2fca2edb8d8d340f8ad799c111f3 (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.py2
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: