Skip to content

Commit

Permalink
Merge pull request #4997 from nortikin/fix_4729_Inset_special_ignore_…
Browse files Browse the repository at this point in the history
…list_of_ignored_faces_in_Fan_mode_if_distance_is_not_zero

fix #4729 Inset special ignore list of ignored faces in Fan mode if distance is not zero
  • Loading branch information
satabol authored Sep 25, 2023
2 parents 2eb05a8 + 49c5c1c commit 7b719b5
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 7b719b5

Please sign in to comment.