mirror of
https://github.com/aseprite/aseprite.git
synced 2024-12-28 15:20:15 +00:00
Add a test for https://community.aseprite.org/t/2894
This commit is contained in:
parent
bef770c2b3
commit
de9f8beed9
27
scripts/merge_down_bugs.lua
Normal file
27
scripts/merge_down_bugs.lua
Normal file
@ -0,0 +1,27 @@
|
||||
-- Copyright (C) 2019 Igara Studio S.A.
|
||||
--
|
||||
-- This file is released under the terms of the MIT license.
|
||||
-- Read LICENSE.txt for more information.
|
||||
|
||||
local red = Color{ r=255, g=0, b=0 }
|
||||
local blue = Color{ r=0, g=0, b=255 }
|
||||
|
||||
-- Reproduces the bug reported in https://community.aseprite.org/t/2894
|
||||
do
|
||||
local s = Sprite(32, 32)
|
||||
local a = s.layers[1]
|
||||
app.useTool{ color=red, layer=a, points={ Point(2, 2) }}
|
||||
|
||||
local b = s:newLayer()
|
||||
app.useTool{ color=blue, layer=b, points={ Point(1, 1) }}
|
||||
|
||||
a.isContinuous = true
|
||||
b.isContinuous = true
|
||||
|
||||
app.command.NewFrame()
|
||||
app.activeLayer = b
|
||||
app.command.MergeDownLayer()
|
||||
|
||||
assert(#s.cels == 2)
|
||||
assert(s.cels[1].image:isEqual(s.cels[2].image))
|
||||
end
|
Loading…
Reference in New Issue
Block a user