From 49c5c1cadbde26f8ea44cadcdbd191c0921f05ad Mon Sep 17 00:00:00 2001 From: satabol Date: Wed, 20 Sep 2023 23:25:20 +0300 Subject: [PATCH] fix #4729 Inset special ignore list of ignored faces in Fan mode if distance is not zero --- nodes/CAD/inset_special_mk2.py | 4 ++-- utils/mesh/inset_faces.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/nodes/CAD/inset_special_mk2.py b/nodes/CAD/inset_special_mk2.py index a446adeb6e..7cf894e7ec 100644 --- a/nodes/CAD/inset_special_mk2.py +++ b/nodes/CAD/inset_special_mk2.py @@ -43,8 +43,8 @@ class SvInsetSpecialMk2( sv_icon = 'SV_INSET' implentation_items = [ - ('mathutils', 'Mathutils', 'Slower (Legacy. Face order may differ with new implementation)', 0), - ('numpy', 'Numpy', 'Faster', 1)] + ('mathutils', 'Mathutils (Legacy)', 'Slower (Legacy. Face order may differ with new implementation)', 0), + ('numpy', 'Numpy', 'Faster (Face order may differ of Mathutils mode implementation)', 1)] implementation: bpy.props.EnumProperty( name='Implementation', items=implentation_items, diff --git a/utils/mesh/inset_faces.py b/utils/mesh/inset_faces.py index f1116a07e0..6174757b30 100644 --- a/utils/mesh/inset_faces.py +++ b/utils/mesh/inset_faces.py @@ -60,7 +60,7 @@ def inset_special_np(vertices, faces, inset_rates, distances, ignores, make_inne use_custom_normals = False if offset_mode == 'CENTER': - zero_inset = np_inset_rate == 0 + zero_inset = np.logical_and( np_inset_rate == 0, np_faces_mask==True) if zero_mode == 'SKIP': np_faces_mask[zero_inset] = False invert_face_mask[zero_inset] = True