Commit Graph

7668 Commits

Author SHA1 Message Date
David Capello
a012dac020 Merge branch 'main' into beta 2021-04-12 17:11:28 -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
4c712af45d Limit centering windows to workarea when we use multiple displays 2021-04-09 09:48:27 -03:00
Gaspar Capello
bcaa12be11 Fix regression - ctrl to copy selection activates move tool 2021-04-09 08:38:28 -03:00
David Capello
ae904428fa Merge branch 'main' into beta 2021-04-08 16:15:02 -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
Martín Capello
783802a980 Fix eyedropper when picking tiles from composed image
When eyedropper was used to pick tiles from a composed image having an
image layer and a tilemap layer without cels, it tried to pick tiles
from the image layer.
2021-04-06 19:22:04 -03:00
Martín Capello
079f7b6537 Fix the mouse cursor shown when entering to submenus 2021-04-05 14:31:53 -03:00
Martín Capello
fdbb3aec59 Fix alert when installing an extension
Before this, the alert's parent window was the main window instead of
the options window.
2021-04-05 14:31:48 -03:00
Gaspar Capello
5e172d81ee Fix exception during palette changes while editor state is MovingPixelsState
Before this fix a console error appeared during a setTransparentIndex
or setPalette execution (or other functions in the ColorBar class)
while some selected portion of the image was
transformed (MovingPixelsState).

Bug reported: https://community.aseprite.org/t/5288
2021-03-31 17:29:24 -03:00
David Capello
27273e5529 Fix mouse pos of the new message created in Widget::offerCapture() 2021-03-31 17:14:31 -03:00
David Capello
4f4f5fee7f Fix tooltips in multi-displays mode when the Preview window is open 2021-03-31 17:10:31 -03:00
David Capello
ff3b14978a Comment ASSERT() that can happen in ButtonSet 2021-03-31 15:34:11 -03:00
Martín Capello
b35cf6c66d Add .vs directory to .gitignore 2021-03-29 16:34:53 -03:00
Martín Capello
734d3bace6 Fix regression: problems in the preferences and theme selection
The mouse cursor dissapears when "Apply" button is pressed or when a
new window appers.
2021-03-29 16:33:47 -03:00
David Capello
0396e80fce Fix popup menu positions when we are not in the main screen 2021-03-29 15:55:56 -03:00
David Capello
dead710213 Fix regression showing the selection feedback above all layers
Without this fix we'll see the selection stroke feedback in the same
level as the active layer. With this patch the preview is displayed at
the top just as in the main branch.
2021-03-29 12:34:19 -03:00
David Capello
9be9b4d5e5 Merge branch 'main' into beta 2021-03-26 12:19:45 -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
726065164f Fix copying irregular areas of tiles in "tiles mode"
Now we can use the lasso tool in tiles mode, select an
irregular (non-rectangular) area and move that area of tiles
correctly.
2021-03-22 20:20:20 -03:00
David Capello
5cd66b58f1 Fix correct hot region for dynamics dialog 2021-03-22 11:56:02 -03:00
David Capello
103a8087cc Fix bug selecting brush types and dynamics with one click + dragging mouse
Fixed bug offering mouse capture to widgets in other displays when
get_multiple_displays() is on.
2021-03-22 11:54:57 -03:00
David Capello
a9640a28dc Fix several bugs handling the clipboard on X11 2021-03-22 11:27:59 -03:00
David Capello
cf21f78d8d Limit loaded windows frame position with active workarea 2021-03-19 20:20:24 -03:00
David Capello
d93fdfd49e Fix indentation of if statement 2021-03-19 19:32:28 -03:00
David Capello
b015b16da5 Merge branch 'main' into beta 2021-03-19 19:27:29 -03:00
David Capello
bcd69495ce Fix several issues locating windows with multiple UI windows
We've refactored the code to support locating windows (and popups
windows + hot regions) correctly in both modes: with one ui::Display
and with multiple ui::Displays.

For this we've added a new ui::fit_bounds() function that works in
both modes.
2021-03-19 18:57:56 -03:00
David Capello
ed8446ca0b Run CI on PRs 2021-03-18 10:02:09 -03:00
David Capello
7079801697 Avoid leaks running "gen" when memory sanitizer is enabled 2021-03-15 21:05:33 -03:00
David Capello
6b89075b26 Don't send paint messages when we are closing the app 2021-03-09 16:43:22 -03:00