File tree Expand file tree Collapse file tree 1 file changed +0
-17
lines changed Expand file tree Collapse file tree 1 file changed +0
-17
lines changed Original file line number Diff line number Diff line change @@ -106,25 +106,8 @@ def ScaleModel():
106
106
ob .select_set (False )
107
107
108
108
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
-
122
109
for ob in bpy .context .scene .objects :
123
110
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
-
128
111
ob .select_set (True )
129
112
Empties = ob
130
113
bpy .data .objects .remove (Empties , do_unlink = True )
You can’t perform that action at this time.
0 commit comments