Commit Graph

7000 Commits

Author SHA1 Message Date
David Capello
5eb3119877 Update libpng 2019-09-05 20:15:44 -03:00
David Capello
0b44b83cf3 Add a timer to MovingPixelsState to avoid RotSprite on each mouse move
We can use the fast algorithm for fast feedback, and use a timer to
draw with RotSprite when the mouse doesn't move after 50ms.
2019-09-05 20:03:16 -03:00
David Capello
d03f5e9145 Add option to force RotSprite usage (as in old versions) 2019-09-05 18:22:51 -03:00
David Capello
3e391670b9 Fix preview of certain tools in tiled mode (fix #2145)
Fixes #2145 and https://community.aseprite.org/t/3833
Regression introduced in: 6a88713213
2019-09-05 18:04:38 -03:00
David Capello
1c68c25594 Fix preview center when tiled mode is enabled 2019-09-05 17:56:55 -03:00
David Capello
42b1154c25 Remove unused variable 2019-09-05 17:56:41 -03:00
David Capello
4acd3675b0 Remove unused code 2019-09-05 15:34:01 -03:00
David Capello
3e478d3efa Transform/scale/rotate multiple cels at the same time (fix #1148, #1172, #1238, #1364)
Requested in twitter, the forum, and in several other places and
frequently over all these years:
https://community.aseprite.org/t/scaling-multiple-frames-simultaneously/240
2019-09-05 15:03:13 -03:00
David Capello
2d979c521c Update status bar info immediately after rotating/transforming the selection 2019-09-03 16:37:12 -03:00
David Capello
e19119cae2 Keep rotation angle inside -180...180 range when using Edit > Rotate commands 2019-09-03 16:34:47 -03:00
David Capello
47ff85e871 Avoid RotSprite for 90/180 degree rotations
Reported several times:
https://community.aseprite.org/t/better-90-180-rotation-from-menu/2937
https://community.aseprite.org/t/rotate-90-should-not-use-rotsprite/3267
https://community.aseprite.org/t/improvements-to-rotsprite/3613/4
https://community.aseprite.org/t/buggy-90-degree-rotation/3793
2019-09-03 15:10:02 -03:00
David Capello
dcdde74cba Print layers/tags/slices on stdout only if there are no export params -sheet/-data (fix #2143) 2019-08-30 18:24:31 -03:00
David Capello
eb2e0e52dc Fix crash using Sprite:close() Lua API on modified sprites (fix #2142) 2019-08-30 17:17:58 -03:00
David Capello
23b6e1d118 Update links in README file 2019-08-29 23:15:02 -03:00
David Capello
76bc6f5b17
Merge pull request #2139 from SHADOWELITE7/patch-1
Google plus removed due to google+ being discontinued
2019-08-29 23:11:05 -03:00
David Capello
51fa0d471e Fix crash generating thumbnails for certain sprites w/cels in specific positions 2019-08-29 17:51:44 -03:00
David Capello
5b782dc27e Fix several issues selecting specific layers to export (fix #2084)
Now if we choose a group to export, the children are not automatically
exported too, the original visibility state is kept. (Anyway we can
still include all those children doing something like "-layer
groupName/*" from the CLI.)
2019-08-29 17:04:58 -03:00
David Capello
fe0563664d Remove unused #include 2019-08-27 20:01:23 -03:00
David Capello
75c127872b [lua] Add several properties to handle layer groups (fix aseprite/api#16)
New properties to manage groups/sublayers:
* Layer.layers: property to access sublayers of a group
* Layer.stackIndex: property with the index of the layer in the list
  of layers
* Layer.parent setter: to move the layer to other group
2019-08-27 19:57:49 -03:00
David Capello
55594a4d33 [lua] Add support to index layers by name 2019-08-27 19:56:33 -03:00
David Capello
e968758117 Use the simple ink when there is just one color for the shading ink 2019-08-26 16:27:53 -03:00
David Capello
8e1f98a45f Fix ColorShades() painting of default text
Regression introduced in 9a75d01efe
2019-08-26 16:11:37 -03:00
Jasper Rogers
f604d6fee9
Google plus removed due to google+ being discontionued
Google plus removed due to google+ being discontionued
2019-08-26 09:31:33 -04:00
David Capello
9c81ed46f2 Use threads in shrink_bounds() when it's possible
Improves the performance when we edit big images (shrink + crop +
image allocations are the performance issues we have when we're
editing big images).

The real solution for image allocations would be to change the
internal representation of images to a tile-based images with a cache
of tiles. But that is not planned in the short-term.
2019-08-21 20:21:57 -03:00
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 d0962eb737

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