Commit Graph

8492 Commits

Author SHA1 Message Date
David Capello
901175d476 Restore possibility to use Ctrl+Alt to copy selection and snap-to-grid at the same time (fix #3497)
If we don't activate Brush Size mouse wheel action when using Ctrl+Alt
key modifiers in a selection-like tool we can use Ctrl+Alt to make
copies of the selected region and snap-to-grid at the same time.
2022-09-02 11:56:07 -03:00
David Capello
87a68b0a81 Fix Ctrl+Alt+drag mouse to increase brush size when moving to the right (fix #3496)
Regression introduced in 50707117f6
2022-09-02 11:47:09 -03:00
David Capello
b168b1191f Replace some bool params with enums 2022-09-02 11:41:46 -03:00
David Capello
8b08a88bd1 Merge branch 'main' into beta 2022-08-31 12:31:44 -03:00
David Capello
ae889d4ae3 Remove unused local variable from BmpFormat::onLoad() 2022-08-31 12:29:56 -03:00
David Capello
8d79350b7c Fix minor warning C4468 in MSVC using [[fallthrough]]
This is the warning C4468: 'fallthrough': attribute must be followed by a case label or a default label
2022-08-31 12:28:52 -03:00
David Capello
85a69a6783 Add missing RangeObj instance in Range_set_tiles() 2022-08-31 12:06:05 -03:00
David Capello
ddafa5083e Merge branch 'main' into beta 2022-08-31 11:57:16 -03:00
David Capello
c79fb8b211 Fix compilation when ENABLE_UI is disabled
E.g. We cannot use current_editor/Editor class for the CLI-only
Aseprite version.
2022-08-31 11:48:16 -03:00
David Capello
2a93672c70 [lua] Range:clear() now clears the selection of slices 2022-08-31 11:36:39 -03:00
David Capello
47aae7fc07 [lua] Support expressions like: app.range.slices=app.activeSprite.slices
Using lua_geti() we can iterate the SlicesObj as a table.
2022-08-31 11:28:37 -03:00
David Capello
6dce23540a [lua] Move app.selectedSlices to app.range.slices
The biggest motivation was that the Range object is already used to
get/set selected objects in the UI, and it's the range used in
operations like Edit > Delete command (which is the case for slices).
2022-08-31 11:17:34 -03:00
lampysprites
4d65b5c925 [lua] Add app.selectedSlices field 2022-08-31 10:36:00 -03:00
David Capello
2789e41d48 [lua] New API version 20 2022-08-31 09:36:27 -03:00
David Capello
6da4000e6c Make Enter key to "Agree" loading the animation sequence when we modify the duration field 2022-08-31 09:11:59 -03:00
lampysprites
c67902dee3 Request frame duration when opening sequences 2022-08-31 09:06:16 -03:00
Gaspar Capello
277e24c799 Minor refactor on old macros within BMP format 2022-08-30 14:44:47 -03:00
David Capello
1335d65c41 Merge branch 'main' into beta 2022-08-30 14:22:17 -03:00
David Capello
877b5e00a3 Add color_scales_tests 2022-08-30 14:14:06 -03:00
Gaspar Capello
bdcabdedf3 Add extended support to BMP files (fix #3277, fix #1495)
Before this addition, Aseprite supported following BMP formats:
- Size = 12 (OS/2 BMP 1.0)
- Size = 40 (Windows BMP v3)

Now extended support has been added to the BMP extension:
- Load BMP files with BMP header size:
  - Size = 12 (OS/2 BMP 1.0)
  - Size = 16 (OS/2 BMP 2.0 - size 16)
  - Size = 24 (OS/2 BMP 2.0 - size 24)
  - Size = 40 (Windows BMP v3)
  - Size = 52 (BITMAPV2INFOHEADER)
  - Size = 56 (BITMAPV3INFOHEADER)
  - Size = 60 (OS/2 BMP 2.0 - size 60)
  - Size = 64 (OS/2 BMP 2.0 - size 64)
  - Size = 108 (BITMAPV4INFOHEADER) at the moment colorimetry isn’t supported.
  - Size = 124 (BITMAPV5INFOHEADER) at the moment ICC profiles not supported.
- Load BMP with alpha channel.
- Load BMP 2bit color depth.
- Export BMP files with alpha channel (not palette based).
2022-08-30 13:34:32 -03:00
David Capello
bc16ab3a71 Fix crash accessing a deleted display using parentDisplay() (fix #3491, fix #2907)
This might be a fix for two frequently reported crashes from Sentry:

1) In Manager::_closeWindow() (#3491): We can reproduce this bug (without
this patch) pressing Ctrl+S to save the active sprite and clicking
randomly in the menu bar (File, Edit, etc. options) to open other menu
boxes (a crash can happen when multiple windows UI is enabled).

2) In set_native_cursor_on_all_displays() (#2907): We weren't able to
reproduce this bug.
2022-08-29 20:01:50 -03:00
David Capello
4817f0a64b Merge branch 'main' into beta 2022-08-24 16:56:34 -03:00
David Capello
282328d6d6 Remove dependency with stringencoders library 2022-08-24 12:50:30 -03:00
David Capello
e87cb2dd8f Merge branch 'main' into beta 2022-08-23 15:24:02 -03:00
David Capello
8a7f6930d0 Fix minor memory leaks loading palettes using std::unique_ptrs 2022-08-23 15:08:01 -03:00
David Capello
ab4088502c Use FileAbstractImage in .fli and .webp file formats (#3008) 2022-08-23 11:33:03 -03:00
David Capello
2f34e25f06 Merge branch 'export' into beta 2022-08-19 18:05:36 -03:00
David Capello
38270fff5b Add --extrude CLI option (fix #2072) 2022-08-19 17:34:16 -03:00
David Capello
acb246e26b Add "Sprite Grid" source option to Export Sprite Sheet (fix #1982)
In this way we can export each grid cell/tile as an individual sprite,
and use the extrude option on each grid cell. We've added the
--split-grid CLI option too.
2022-08-19 17:21:56 -03:00
David Capello
a2f61a3378 Add "File > Export > Export Tileset" option (#3240)
Now we can export one (or several) tilesets in one sprite sheet (using
the same options that are available in the Export Sprite Sheet dialog,
e.g. like extruding tiles, related to #1982 in some way).

Some changes:

* New "Source" field and fromTilesets param for ExportSpriteSheet
  command
* New ExportTileset command (which acts like ExportSpriteSheet but
  with fromTilesets=true by default)
* Added --export-tileset CLI option
2022-08-18 14:56:43 -03:00
David Capello
d0701c61ca Merge branch 'main' into beta 2022-08-18 13:54:11 -03:00
David Capello
9f8df8e914 [win] Fix aseprite-thumbnailer with new changes from a66c170ded 2022-08-18 13:53:20 -03:00
David Capello
83857ea600 Merge branch 'main' into beta 2022-08-17 22:58:12 -03:00
David Capello
a66c170ded Add render::BgOptions to simplify some code 2022-08-17 22:40:25 -03:00
David Capello
4e12e427ef Rename "checked" -> "checkered" (background, drawing routines, etc.)
Also rename setBgCheckedSize -> setBgStripeSize in case we add new
background patterns (like horizontal/vertical/diagonal stripes, etc.)
2022-08-17 22:19:07 -03:00
David Capello
2367c8526b Replace deprecated macro TYPED_TEST_CASE with TYPED_TEST_SUITE 2022-08-17 21:46:33 -03:00
David Capello
bdee7d98fe Use std::unique_ptr for selected layers/frames in DocExporter::Item 2022-08-17 12:50:41 -03:00
David Capello
c8c92499b2 Include wintab32.dll sha1 information (related to #3358)
This might be useful to pre-filter one specific buggy wintab32.dll
library to avoid crashes.
2022-08-17 12:01:03 -03:00
David Capello
a13423bd70 Add the logic side to export the selection only (fix #645) 2022-08-12 20:11:25 -03:00
David Capello
3c3d2dafe6 Add Area element in the Export window (UI only) (#645) 2022-08-12 17:25:40 -03:00
Gaspar Capello
e6c90334f9 Fix scrollbar for the Extensions list in Preferences is missing on the first open (fix #3456) 2022-08-10 12:01:28 -03:00
David Capello
03f9db5121 Move export/import commands to submenus inside File > Export/Import 2022-08-10 11:58:34 -03:00
David Capello
71b91cf6ed Merge branch 'main' into beta 2022-08-09 16:26:52 -03:00
David Capello
3a917492ee Fix crash showing color selector when GPU is enabled
It looks like the internal surface has a nullptr color space.
2022-08-09 16:11:57 -03:00
Gaspar Capello
19b18d2a63 Fix reference layer scaled incorrectly after Sprite > Sprite Size (fix #3461) 2022-08-09 15:30:20 -03:00
Gaspar Capello
7a8cd2683e Don't keep DraggingValueState after closing a command dialog (fix #3445)
Before this fix, when the Sprite Size dialog was opened using the
Ctrl+Alt+I key combination, then closed, the brush size changed as the
cursor moved (without even pressing Ctrl+Alt modifiers), keeping the
DraggingValueState alive.
2022-08-08 18:00:48 -03:00
David Capello
09626b2c0c Fix possibility to dock/drop tabs to sides/tabs (fix #3453)
Bug reproducible only with multiple windows and generally small Screen
Scaling factor (100%).
2022-08-08 17:22:39 -03:00
Gaspar Capello
add1128248 Fix RotSprite transparency bug (fix #3444) 2022-08-08 10:37:32 -03:00
David Capello
da636253ee Fix scale factor when using the "Export for Twitter" (fix #3465)
Regression introduced in b7d5d4a2c9
2022-08-08 10:29:36 -03:00
Martín Capello
daa9b40a07 Fix eyedropper quick tool when preview window is visible (fix #3236)
Co-authored-by: David Capello <david@igara.com>
2022-08-08 09:56:37 -03:00