David Capello
0812ea8224
[lua] Add negation operation (unary -) into Point() metatable
2019-08-13 18:19:05 -03:00
David Capello
ad1a39714e
[lua] Add Image:resize() function
...
Closes: https://community.aseprite.org/t/3633
2019-08-13 18:16:30 -03:00
David Capello
b6de9d924b
Indent colored-layer part for nested layers
...
Request: https://community.aseprite.org/t/3658
2019-08-12 19:47:42 -03:00
David Capello
2a42cc1bf6
Quantization: Generate 1st pal entry w/alpha=0 for mask color on transparent layers when possible ( fix #2109 )
2019-08-12 16:43:36 -03:00
David Capello
f317f9594d
Add support to use ColorQuantization from scripts
2019-08-12 16:42:30 -03:00
David Capello
35aaa18ee3
[lua] Add app.range.colors + Move/CopyColors commands
...
Closes: https://community.aseprite.org/t/2512
2019-08-10 14:37:18 -03:00
David Capello
1995d67759
Remove all preferences migration
...
The migration of preferences were added to rename preference options
in a progressive way. We don't need them after several versions were
updated (and right now they might be adding some noise if users are
launching different Aseprite versions).
An attempt to fix this bug https://community.aseprite.org/t/3303
2019-08-08 10:55:39 -03:00
David Capello
5cb5ff9393
[lua] Fix Sprite:resize() function (resize sprite+images instead of just the canvas)
2019-08-07 13:35:48 -03:00
David Capello
744bd36408
Fix transparent color for sprites created w/NewSpriteFromSelection
...
Fixes https://community.aseprite.org/t/3629
2019-08-06 16:18:01 -03:00
David Capello
b55d407ac1
Fix zooming w/tiled mode ( fix #2120 )
...
Regression introduced in d0962eb737ab0f652952982db7b0d68596b80545
Bug reported in:
* https://github.com/aseprite/aseprite/issues/2120
* https://community.aseprite.org/t/less-jank-in-tile-view/3659
2019-08-06 15:19:21 -03:00
David Capello
a70a3a11c7
Add missing #include <memory> into editor_state.h
2019-08-01 23:38:38 -03:00
David Capello
6fff771118
Fix crash using mismatch of FormatOptions ( fix #2130 )
2019-08-01 20:20:02 -03:00
David Capello
d32fd97da5
Replace base::SharedPtr with std::shared_ptr
...
We can remove our smart pointer (base::SharedPtr) as we're already
using C++11 compilers on all platforms.
2019-08-01 19:16:16 -03:00
Gaspar Capello
2d3be681e0
Fix ScrollingState crash ( fix #2115 )
...
Before this fix Aseprite was crashing when we kept holding the mouse
middle button down, then pasting, and finally pressing undo.
2019-07-31 15:28:35 -03:00
David Capello
c409494639
Call os::System::activateApp() even on _DEBUG mode (because we are not in a bundle when we debug)
2019-07-31 15:25:32 -03:00
David Capello
4264f199cd
Create the ContextWriter+Tx from UI thread on filters (related to #2122 )
...
When we create a Tx the active site is queried, and the UIContext
needs access to the UI to calculate the active site correctly.
2019-07-29 12:13:53 -03:00
David Capello
b5547251f5
We cannot create a ContextReader in the filter background thread
...
This is because ContextReader gets the activeSite, which (in case of
the UIContext) asks to the UI thread this information (app::Editor).
2019-07-26 12:06:21 -03:00
David Capello
f248d8ed65
Merge pull request #2117 from Gasparoken/refactor-sprite-size
...
Refactor sprite size command params
2019-07-26 10:49:54 -03:00
Gaspar Capello
3e1584e638
Refactor sprite size command params
2019-07-26 09:30:28 -03:00
David Capello
4c4c20ace6
[lua] Add support to use ColorCurve/ConvolutionMatrix commands from scripts
2019-07-25 22:23:38 -03:00
David Capello
ccef22f187
lua: Add support to construct Point/Size/Rectangles from array of integers
2019-07-19 18:39:06 -03:00
David Capello
1ef67cada4
lua: Support more filters from scripts (BrightnessContrast, Despeckle, HueSaturation, InvertColor, Outline)
2019-07-18 11:47:26 -03:00
David Capello
814250e325
Add support to call ReplaceColor from scripts when the UI is disabled (e.g. from CLI)
2019-07-16 16:36:09 -03:00
David Capello
9143523827
Add params to ReplaceColor command (now this filter can be used from a script without UI)
2019-07-16 09:31:25 -03:00
David Capello
66442ee575
Update Travis CI to test other compilation configurations
2019-07-15 16:19:32 -03:00
David Capello
655ce92836
Use a Tx instead of a Transaction on FilterManagerImpl ( fix #2108 )
2019-07-15 14:30:59 -03:00
David Capello
6c7f1ff05b
lua: Add "bounds" parameter to Dialog:show() function
2019-07-12 16:44:54 -03:00
David Capello
568aadbfc8
lua: invalidate Dialog() after changing its bounds
2019-07-12 16:42:43 -03:00
Gaspar Capello
33dd70f89d
Fix contour tool cannot draw only one pixel
...
The purpose of this fix is enable drawing of one pixel with contour
tool is active and we drag the cursor inside of the same
pixel (https://community.aseprite.org/t/3509 ).
Added 3 tests in polygon_tests.cpp to test polygon function when the
expected results is a simple pixel.
2019-07-12 14:41:48 -03:00
David Capello
04d547ce37
Use Tx instead of Transaction on PixelsMovement
2019-07-12 14:36:28 -03:00
David Capello
1ae29dfc3c
Check if the context can show the new layer name dialog
2019-07-10 12:45:53 -03:00
David Capello
af4fd54c2a
Update laf module, fix #1835 and #1973
v1.2.13
2019-07-02 16:50:55 -03:00
David Capello
8d4c68fe17
Remove duplicate menu options (prefer "Edit > Paste Special" to paste the clipboard as something new)
2019-07-02 15:34:26 -03:00
David Capello
757fadeaf0
Add New Layer via Cut/Copy commands ( fix #1567 )
2019-07-02 15:28:05 -03:00
David Capello
fed9a2b45c
Don't make layer indentation wider for child layers when we zoom in the timeline
2019-07-01 16:18:32 -03:00
David Capello
f2fae67734
Fix invisible brush edges in certain cases/zoom levels
2019-07-01 15:51:58 -03:00
David Capello
a0ebecca50
Make NewLayerCommand compilable when ENABLE_UI is not defined
2019-06-28 18:53:23 -03:00
David Capello
fe4106457f
Add "Edit > Paste Special > Paste As New Sprite" option ( fix #1024 )
2019-06-28 18:51:14 -03:00
David Capello
e9d8392a46
lua: Several app.useTool() calls can be used in one transaction now ( fix aseprite/api#18 )
2019-06-28 16:44:52 -03:00
David Capello
ff6538a68e
Add Edit > Paste Special > Paste As New (Reference) Layer ( fix #672 , fix #1748 )
2019-06-27 15:34:56 -03:00
David Capello
056eb28670
Fix crash destroying temporal docs (e.g. adding new reference layer)
2019-06-25 15:53:31 -03:00
David Capello
86ffa37fdd
Fix rendering bug with new engine and zoom out (canvas is not updated correctly)
v1.2.12.1
2019-06-11 10:42:41 -03:00
David Capello
922505e8af
Fix performance problem after viewing an huge sprite
...
When we were viewing an huge sprite, a temporal buffer (os::Surface*)
used to render it would increase its size to the size of the
canvas. After that, whatever other sprite that we saw (even for the
smallest one) we were unnecessary clearing the entire (huge) internal
buffer with os::Surface::clear() on each render.
This problem was visible only using the new render engine.
v1.2.12
2019-06-10 17:43:38 -03:00
David Capello
8e193b592a
Avoid refreshing the list of backup sessions when an item is doing some work/task
2019-06-10 11:02:03 -03:00
David Capello
07f64b7682
Fix Jumble tool brush behavior and improve IntertwineAsLines impl
...
* Fixed Jumble tool behavior: When brush is circular, all the brush
bounds (square) where randomized. And at the end all the pixels were
re-randomized.
* Solved the double-point in IntertwineAsLines from
62802cfbdfbd85edd5a339361de70c36d74925dc in an alternative way: Just
don't draw the first point when we join consecutive 2 points
strokes (the issue here is that freehand controller generates
strokes of two points, so every call on joinStroke() of
IntertwineAsLines has only two points, we have to check if we're
drawing the first stroke, and if we are drawing the second 2 points
stroke, we skip the first pixel to avoid drawing it two times,
solved with IntertwineAsLines::m_firstStroke).
2019-06-08 13:35:30 -03:00
David Capello
8405add137
Fix error using an invalid crop_image() with Width < 1, Height < 1 when using New Brush with right-click outside the canvas bounds
2019-06-07 18:39:36 -03:00
Gaspar Capello
8281e49798
Fix joinStroke function from class IntertwineAsLines
...
The purpose of this fix is draw correctly the
first stroke point as result of a joinStroke() execution
from class IntertwineAsLines when following
conditions are meet:
- pencil tool
- pixel perfect OFF,
- custom brush
- try to draw a line of 2 pixel.
The original issue was detected by the tests functions
based in useTool function on Lua scripts.
The issue was presented in tool.lua.
2019-06-07 17:28:03 -03:00
David Capello
45a09f1a15
Disable keepEditedSpriteData checkbox if dataRecovery is disabled
2019-06-07 15:12:39 -03:00
David Capello
fb05e91d01
Hide "Recover Files" button when it's disabled (fix crash clicking it in this case)
2019-06-07 14:40:11 -03:00
David Capello
2a364c3ad2
Fix saving general.keep_closed_sprite_on_memory_for preference with decimals
2019-06-07 13:27:31 -03:00