Skip to content

Commit

Permalink
* Flatten layers action added
Browse files Browse the repository at this point in the history
  • Loading branch information
FrandSX committed Oct 12, 2021
1 parent b84bf00 commit 53fd44c
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions sxtools.py
Original file line number Diff line number Diff line change
Expand Up @@ -8343,9 +8343,8 @@ def invoke(self, context, event):
layer0 = utils.find_layer_from_index(objs[0], 1)
layer1 = utils.find_layer_from_index(objs[0], 1)
layers.blend_layers(objs, compLayers, layer1, layer0, uv_as_alpha=True)
# clrLayers = compLayers.remove(layer1)
# for layer in clrLayers:
# layers.clear_layers(objs, layer)
for layer in compLayers:
layers.clear_layers(objs, layer)
else:
if event.shift:
layer = None
Expand Down

0 comments on commit 53fd44c

Please sign in to comment.