Skip to content

Commit

Permalink
Remove Prop Logic
Browse files Browse the repository at this point in the history
  • Loading branch information
Melioli committed Jan 1, 2025
1 parent 98ebc96 commit dd4c442
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions Tools/model_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,25 +106,8 @@ def ScaleModel():
ob.select_set(False)

def RemoveEmpties():
# List of prop target names to preserve when keep_prop_targets is enabled
prop_targets = {
"PRIVATE_Pendant",
"PRIVATE_RHand",
"PRIVATE_LHand",
"PRIVATE_WeaponRootSword",
"PRIVATE_ChestKatana",
"CatalystL",
"CatalystR",
"WeaponL",
"WeaponR"
}

for ob in bpy.context.scene.objects:
if ob.type == "EMPTY":
# If keep_prop_targets is enabled and the empty is in our prop_targets list, skip it
if bpy.context.scene.keep_prop_targets and ob.name in prop_targets:
continue

ob.select_set(True)
Empties = ob
bpy.data.objects.remove(Empties, do_unlink=True)
Expand Down

0 comments on commit dd4c442

Please sign in to comment.