Add new layer detection to keep colors mapped correctly.
This commit is contained in:
parent
ec8e131829
commit
0ed105d355
5 changed files with 78 additions and 49 deletions
|
@ -1,6 +1,7 @@
|
|||
extKey = "annabunches/abase" -- this must come before we require 'abase-commands'
|
||||
|
||||
local cmd = require "abase-commands"
|
||||
local listeners = require "abase-listeners"
|
||||
|
||||
function init(plugin)
|
||||
plugin:newCommand{
|
||||
|
@ -76,4 +77,13 @@ function init(plugin)
|
|||
return app.layer.isGroup
|
||||
end
|
||||
}
|
||||
|
||||
app.events:on(
|
||||
"aftercommand",
|
||||
function(ev)
|
||||
if (ev.name == "NewLayer") then
|
||||
listeners.RecolorLayers()
|
||||
end
|
||||
end
|
||||
)
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue