Commit Graph

7602 Commits

Author SHA1 Message Date
David Capello
a926ca9055 Update cmark module 2021-04-13 18:41:22 -03:00
David Capello
5b3600e261 Cache user.aseprite-brushes path 2021-04-13 16:38:56 -03:00
David Capello
70e2abaf69 Fix some issues detected with the ThreadSanitizer 2021-04-13 15:35:34 -03:00
David Capello
8b4746e813 Add option to disable the "open sequence of files" dialog 2021-04-12 16:57:02 -03:00
David Capello
5e98b39944 Expand timeline range outline for layers/frames to all cels 2021-04-12 14:48:16 -03:00
David Capello
1b0466af17 Fix some bugs drawing the timeline when we scroll it
Mainly the range outline outside the frames header.
2021-04-12 14:47:59 -03:00
David Capello
8d6f889e0e Add option to keep the timeline selection when we draw on the canvas 2021-04-12 14:47:47 -03:00
David Capello
2df3cd8a80 [lua] Add app.command.ImportSpriteSheet()
Feature request: https://community.aseprite.org/t/8482
2021-04-09 17:28:59 -03:00
David Capello
3769d91125 [lua] Add Sprite.pixelRatio property
Feature request: https://community.aseprite.org/t/8627
2021-04-09 16:22:50 -03:00
David Capello
5053443d21 Load indexed tga w/transparent pal entries as transparent layer
Before this we were loading the file with a Background layer with a
transparent palette entry.
2021-04-09 12:09:45 -03:00
David Capello
cff3475941 Don't show warning when saving indexed tga w/transparent pal entries 2021-04-09 12:09:09 -03:00
David Capello
f311e3edde Fix selection feedback in indexed when mask color w/alpha=0 (fix #1412, fix #1667)
Also reported recently here (and probably in several other places):
https://community.aseprite.org/t/8462
2021-04-09 11:11:41 -03:00
David Capello
64f96f0851 [linux] Use $XDG_CONFIG_HOME if defined instead of $HOME/.config (fix #2332) 2021-04-08 15:56:32 -03:00
David Capello
f1b02a3347 Deselect timeline range in "auto select layer" mode if we just click the active layer
Fix: https://community.aseprite.org/t/8610
2021-04-08 15:21:11 -03:00
David Capello
f91c07825b Don't use Timeline range if it's hidden in editor site & moving cel 2021-04-08 15:17:39 -03:00
David Capello
f3ab779bfd Don't transform hidden layers (fix #2680) 2021-04-08 11:24:55 -03:00
David Capello
565057cf77 Add missing file in 67eeac8045 2021-04-07 18:51:48 -03:00
David Capello
9c319e46ac Fix bug transforming the same linked cel two times
As we wanted the current cel as the first cel to transform (to avoid
re-transforming it with inner cmds when we drop pixels), if this cel
was a linked from other one it will not be removed from the
getEditableCels() list, so two linked cels would appear two times in
the list. Now we remove the current cel correctly when it's a linked
cel after re-adding it.

Reported here: https://community.aseprite.org/t/8618
2021-04-07 18:32:56 -03:00
David Capello
67eeac8045 Fix bug keeping the modified range different than the visible range when moving pixels
When we clicked the current cel/frame/layer on MovingPixelsState in
the Timeline, we weren't dropping the pixels, so the range was
different in the Timeline UI, but we were using the old site range
which was different (bigger) than the Timeline range.

Fixes several bugs: https://community.aseprite.org/t/8618
2021-04-07 18:11:30 -03:00
David Capello
169cfa39cf Use timeline selection only when it's visible 2021-04-07 15:20:36 -03:00
David Capello
a122f1ceba Reset tool preferences just once when running from CLI 2021-04-07 12:58:03 -03:00
David Capello
351900b4e7 Update flic and tga modules 2021-04-07 11:24:39 -03:00
David Capello
a5c36d0b0f Add possibility to cancel the DrawingState with Undo/Redo/Cancel commands
To match the new MovingCelState behavior.
2021-03-26 12:05:28 -03:00
David Capello
768b69113a Disconnect from BeforeCommandExecution signal onBeforePopState to avoid double backToPreviousState() calls
In some special cases (several key press enqueued?) we can receive a
BeforeCommandExecution signal when we are not part of the Editor state
stack anymore.

Related to 5ba8cecdde
2021-03-26 11:40:10 -03:00
David Capello
5ba8cecdde Fix a crash pressing (and keeping pressed) Ctrl+Z (Command+Z)
This tries to avoid calling onBeforeCommandExecution() after we are
going to the previous state. This might be a problem on all states
that are using a scoped_connection to disconnect from the app::Context
signal in the destructor (instead of in the
onBeforePopState). Something to fix next for all other states.
2021-03-26 10:45:46 -03:00
Gaspar Capello
42201a4783 Fix bug while moving an image in MovingCelState
Original post: https://community.aseprite.org/t/pretty-nasty-bug-specific/8290

Before this fix, if you pressed Cmd Z / Ctrl Z (undo) while moving an image holding Cmd/Ctrl key,
the moved image were gettting stuck on cursor, and console errors were shown on every click.
2021-03-26 10:01:11 -03:00
David Capello
a9640a28dc Fix several bugs handling the clipboard on X11 2021-03-22 11:27:59 -03:00
David Capello
ed8446ca0b Run CI on PRs 2021-03-18 10:02:09 -03:00
David Capello
6b89075b26 Don't send paint messages when we are closing the app 2021-03-09 16:43:22 -03:00
Gaspar Capello
1193bf18fc Fix lua error crash (fix #2635)
Prevents crashes from uncaught exceptions generated from Lua errors
when running aseprite from the console with -script param.
2021-03-09 16:40:24 -03:00
David Capello
2dccb6d646 Add GitHub actions 2021-03-08 11:38:04 -03:00
David Capello
246b52b086 Update laf module 2021-03-08 11:16:57 -03:00
David Capello
35bb3af6e2 Replace all base::Bind() with lambda functions 2021-03-05 20:09:42 -03:00
David Capello
ddbbf12bfc Update main branch 2021-03-05 18:39:36 -03:00
David Capello
e50ea46c91 Minor change in CMakeLists.txt 2021-03-05 18:27:31 -03:00
David Capello
5d6aa3ff11 [win] Fix leak of GDI objects (HRGNs) 2021-02-26 09:26:38 -03:00
David Capello
ef4f691459 Generate a native cursor for the crosshair on the sprite
In this way we can get pixel from the window surface and put pixels in
the new cursor surface which will represent the crosshair on the
mouse/screen position. In this way we avoid an effect of a slow mouse
response on high refresh rates.

Maybe related to: https://community.aseprite.org/t/3354
2021-02-25 16:56:33 -03:00
David Capello
a24f271e3a Remove unused vars from BrushPreview 2021-02-25 14:44:07 -03:00
David Capello
74ee4dced4 Fix DEBUG_PAINT_EVENTS on Windows 2021-02-25 13:14:39 -03:00
David Capello
a28b8ad5f8 Update laf module to improve Windows performance 2021-02-25 12:51:27 -03:00
Gaspar Capello
3035a5713d Fix crash deleting a group layer at the top level
The crash could be achieved by having just one group layer at the top
level (with some children) and trying to delete it using Layer >
Delete Layer menu option (without using the timeline range).

Report: https://igarastudio.zendesk.com/agent/tickets/1719
2021-01-15 17:02:10 -03:00
David Capello
32106512dc Update about/status bar copyright info 2021-01-15 14:46:45 -03:00
David Capello
b1b201a22c Minor change in ui::Widget to check current manager 2021-01-15 13:16:40 -03:00
David Capello
045e3ad473 Restore location of ColorQuantization option in the palette menu
Just to avoid confusion right now and to avoid deprecating
documentation in a minor release.
2021-01-15 12:23:10 -03:00
Gaspar Capello
980454eac0 Fix brush symmetry
Prior to this fix, asymmetric brushes weren't reflected, instead the brush was simply moved to a mirrored position.
2021-01-15 12:15:16 -03:00
David Capello
2be11cf2f5 Fix ASSERT deleting a backup session on start when there is no UI
This can happen if the session folder cannto be deleted e.g. when the
folder is not empty (for example if we've copied/created a file in the
session folder manually).
2021-01-15 11:43:07 -03:00
David Capello
ffbe4863ca Minor fix in coding style guide 2021-01-14 12:45:32 -03:00
David Capello
090743155b Merge branch 'css-export' 2021-01-05 15:03:09 -03:00
David Capello
ee07df6a26 CSS output without vars by default 2021-01-05 15:02:12 -03:00
David Capello
b1016a419f Minor formatting changes 2021-01-05 14:43:43 -03:00