Skip to content

Commit

Permalink
fix #4729 Inset special ignore list of ignored faces in Fan mode if d…
Browse files Browse the repository at this point in the history
…istance is not zero
  • Loading branch information
satabol committed Sep 20, 2023
1 parent 4c4bbca commit 49c5c1c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions nodes/CAD/inset_special_mk2.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion utils/mesh/inset_faces.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 49c5c1c

Please sign in to comment.