1960Tools_1_8_3 hot fix
Script error with Merge Materials to Mask function
This commit is contained in:
Binary file not shown.
@@ -151,7 +151,7 @@ class MESH_OT_merge_materials_to_mask(bpy.types.Operator):
|
||||
bpy.ops.object.material_slot_remove()
|
||||
|
||||
# Put UV first
|
||||
self.put_UV_first(obj, selected_uv)
|
||||
self.put_UV_first(obj, int(selected_uv))
|
||||
|
||||
# Change UV names like in Reforger Tools
|
||||
mesh = obj.data
|
||||
@@ -197,6 +197,8 @@ class MESH_OT_merge_materials_to_mask(bpy.types.Operator):
|
||||
# Order: target_index -> first
|
||||
indices = list(range(len(uv_layers)))
|
||||
new_order = [target_index] + [i for i in indices if i != target_index]
|
||||
|
||||
print(new_order)
|
||||
|
||||
# Delete all UV-layers
|
||||
while len(uv_layers) > 0:
|
||||
|
||||
Reference in New Issue
Block a user