[Bf-extensions-cvs] [fb6d7c4e] master: Fix T75394: Archipack update normals before beveling
Robert Guetzkow
noreply at git.blender.org
Tue Apr 7 15:45:46 CEST 2020
Commit: fb6d7c4ed81bc58d15ab81f59292b14f86073bd9
Author: Robert Guetzkow
Date: Tue Apr 7 13:36:51 2020 +0200
Branches: master
https://developer.blender.org/rBAfb6d7c4ed81bc58d15ab81f59292b14f86073bd9
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
===================================================================
M archipack/archipack_floor.py
===================================================================
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:
More information about the Bf-extensions-cvs
mailing list