Skip to content

Commit dd4c442

Browse files
committed
Remove Prop Logic
1 parent 98ebc96 commit dd4c442

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

Tools/model_utils.py

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -106,25 +106,8 @@ def ScaleModel():
106106
ob.select_set(False)
107107

108108
def RemoveEmpties():
109-
# List of prop target names to preserve when keep_prop_targets is enabled
110-
prop_targets = {
111-
"PRIVATE_Pendant",
112-
"PRIVATE_RHand",
113-
"PRIVATE_LHand",
114-
"PRIVATE_WeaponRootSword",
115-
"PRIVATE_ChestKatana",
116-
"CatalystL",
117-
"CatalystR",
118-
"WeaponL",
119-
"WeaponR"
120-
}
121-
122109
for ob in bpy.context.scene.objects:
123110
if ob.type == "EMPTY":
124-
# If keep_prop_targets is enabled and the empty is in our prop_targets list, skip it
125-
if bpy.context.scene.keep_prop_targets and ob.name in prop_targets:
126-
continue
127-
128111
ob.select_set(True)
129112
Empties = ob
130113
bpy.data.objects.remove(Empties, do_unlink=True)

0 commit comments

Comments
 (0)