lunapaint / vscode-luna-paint

A raster image editor extension for VS Code
https://marketplace.visualstudio.com/items?itemName=Tyriar.luna-paint
282 stars 27 forks source link

Removing last additional layer doesn't select background layer #67

Closed duianto closed 3 years ago

duianto commented 3 years ago

Removing the last additional layer, doesn't select the background layer every time, depending on the order the layers were deleted in.

reproduction steps

expected

the background layer should be selected

observed

the background layer is not selected, therefore nothing appears when trying to draw on the canvas.

Animation

note

removing the layers from the top down selects the background layer.

system Luna Paint 0.5.1 VSCode 1.56.2 Windows 10 Version 2004

duianto commented 3 years ago

The background layer isn't selected either if the additional layers are merged in the same order.

duianto commented 3 years ago

And the same thing happens when an additional layer is moved below the background layer, and the additional layer is deleted.

Adding a new layer in this state, adds the layer below the background layer.

duianto commented 3 years ago

It isn't limited to the background layer. Sometimes the layer below isn't selected.

reproduction steps

observed

none of the layers are selected