When adding new layer, make it the active layer

This commit is contained in:
Skyler Lehmkuhl 2024-12-08 00:54:33 -05:00
parent 7a065111f0
commit 4beef05b90
1 changed files with 1 additions and 0 deletions

View File

@ -471,6 +471,7 @@ let actions = {
let layer = new Layer(action.uuid)
layer.name = `Layer ${object.layers.length + 1}`
object.layers.push(layer)
object.currentLayer = object.layers.indexOf(layer)
updateLayers()
},
rollback: (action) => {