Skip to content

Commit

Permalink
chore: remove legacy WNB modifier related checks
Browse files Browse the repository at this point in the history
  • Loading branch information
tristan-hm committed Apr 14, 2024
1 parent 322c4bd commit 2066eda
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 16 deletions.
11 changes: 2 additions & 9 deletions lib/modifiers.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,6 @@ def rectify_mod_order(object, mod_name):

matching_mod_index = None
for index, mod in enumerate(mods):
if "— ND WNB" in mod.name:
matching_mod_index = index
break

if "Weld — ND SW" in mod.name:
matching_mod_index = index
break
Expand All @@ -76,7 +72,7 @@ def rectify_mod_order(object, mod_name):
if mod.segments > 1 or (mod.segments == 1 and mod.harden_normals):
matching_mod_index = index
break

if matching_mod_index is None:
return

Expand Down Expand Up @@ -135,10 +131,7 @@ def remove_problematic_bevels(object):
remove_mods = []

for mod in mods:
if "— ND WNB" in mod.name:
remove_mods.append(mod)
continue
elif mod.type == 'BEVEL' and mod.affect == 'EDGES' and mod.limit_method == 'ANGLE':
if mod.type == 'BEVEL' and mod.affect == 'EDGES' and mod.limit_method == 'ANGLE':
if mod.segments > 1 or (mod.segments == 1 and mod.harden_normals):
remove_mods.append(mod)
continue
Expand Down
4 changes: 0 additions & 4 deletions lib/objects.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,10 +96,6 @@ def create_duplicate_liftable_geometry(context, mode, object_name, ignore_comple
if mod.segments > 1 or (mod.segments == 1 and mod.harden_normals):
bpy.ops.object.modifier_remove(modifier=name)
continue

if "— ND WNB" in mod.name:
bpy.ops.object.modifier_remove(modifier=name)
continue

depsgraph = context.evaluated_depsgraph_get()
object_eval = context.active_object.evaluated_get(depsgraph)
Expand Down
3 changes: 0 additions & 3 deletions utils/apply_modifiers.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,6 @@ def collapse_modifiers(self, obj):
if mod.type in safe_mod_types:
continue

if "— ND WNB" in mod.name:
continue

if skip_weld and mod.type == 'WELD' and "— ND B" in mod.name:
skip_weld = False
continue
Expand Down

0 comments on commit 2066eda

Please sign in to comment.