9794 Commits

Author SHA1 Message Date
Gaspar Capello
63f918cf2a Fix onionskin visiblity is not updated if cel is empty (fix #4969) 2025-02-24 22:11:15 -03:00
Gaspar Capello
e17c3400fb Fix "Straight Line from Last Point” bug in Tilemaps (fix #4623)
Prior to this fix, when the following conditions were met:
- On a tilemap layer
- Tilemap mode = OFF
- Tool = Pencil
- Tileset mode = Manual
- Modifying an existing tile with the "quick line"
  (i.e. holding down the SHIFT key)
resulted in incorrect tool behavior.
2025-02-24 21:56:36 -03:00
Gaspar Capello
f2b870a17f Fix image:drawImage+BlendMode.SRC doesn't draw mask pixels (fix #5001)
Also added tests for Image:drawImage + BlendMode::SRC + ColorMode.RGBA
2025-02-20 12:14:04 -03:00
David Capello
919f4f3321 Update laf module 2025-02-19 17:35:13 -03:00
David Capello
a4e0636c9f [lua] don't allow to set invalid pixel ratios (fix #3285) 2025-02-19 17:19:27 -03:00
Gaspar Capello
26f6a210b6 Fix crash with custom pixel ratios (e.g. Size(4, 3)) (fix #4632)
Prior this fix some custom pixel ratios + old render engine +
zoom level <= 50% resulted in crashes.
2025-02-19 15:47:16 -03:00
Gaspar Capello
3e3dd2a653 Fix timeline thumbnail zoom can't scale beyond 1:1 pixels (fix #4974)
Prior this fix when using large thumbnail sizes on the timeline with
smaller cel images, instead of enlarging the thumbnail image to fit
the full area available, it just adds transparent whitespace around
the thumbnail image.
2025-02-11 11:06:23 -03:00
David Capello
bbe656c856 Missing #include to use color_t in get_sprite_pixel() v1.3.12 2025-01-28 10:05:31 -03:00
David Capello
bab775393e Update laf module 2025-01-28 09:32:04 -03:00
sharkboi
8d30a18ed5 Refactor "View > Preview > Brush Preview" to be a global option (fix #4876)
Co-authored-by: David Capello <david@igara.com>
2025-01-23 15:16:44 -03:00
Liebranca
e66df8da12 Fix skew with pivot on right side of selection (#4823) 2025-01-23 11:45:17 -03:00
Dominic Bowden
3aa403d597 Fix invalid tileset cache after color remap
Before this fix changing a color palette and then remapping it would not
invalidate a tileset's cache. Immediately saving to the .aseprite format
after this would use the stale cache data instead of the current sprite
data.
2025-01-21 11:44:47 -03:00
Christian Kaiser
2d0143caea Use the environment bash to avoid using bash 3 on macOS 2025-01-18 19:21:13 -03:00
David Capello
9779470d0e Update modules 2025-01-10 11:46:42 -03:00
Thorbjørn Lindeijer
db4f80ea91 Fixed zlib include dir when Aseprite is used as sub-project
For the Qt "qaseprite" image plugin, we're using Aseprite as git
submodule so that we can link to its laf, dio and render libraries.

In this case, `CMAKE_BINARY_DIR` refers to the build directory of
qaseprite. We need to use `CMAKE_CURRENT_BINARY_DIR` instead, which
always refers to the right location for the generated `zconf.h`.
2025-01-10 11:29:09 -03:00
David Capello
e5e1c746a6 Update laf module 2025-01-09 16:50:50 -03:00
David Capello
ea000719ab Update copyright year to 2025 v1.3.11 2025-01-07 11:52:40 -03:00
David Capello
2106c18f63 [lua] Update scripting API version to 31 2025-01-07 11:50:18 -03:00
Gaspar Capello
8cad288635 Fix dialog title issue with close button (fix #4735)
The Title Label Widget is now limited so it doesn't overlap the
decorative mini buttons.
2025-01-07 10:41:00 -03:00
Martín Capello
20b92ca745 Fix timeline drawing issues (fix #3678) 2025-01-07 10:23:31 -03:00
Martín Capello
dedfdce705 Fix toolbutton_last image (fix #4719) 2025-01-07 10:16:19 -03:00
Gaspar Capello
ebc4624d59 Fix recent files/folders repeating items (fix #4851)
Prior to this fix, duplicate folders and files were displayed on
the Home tab. Additionally, paths were sometimes not well-formed and
included "/.." strings.

Regression introduced in #4389
2025-01-07 09:53:53 -03:00
David Capello
673f07494b Update laf module 2025-01-06 17:04:24 -03:00
David Capello
1d3bacebcc [ci] Install required libfontconfig1-dev dependency 2025-01-06 16:59:11 -03:00
David Capello
2aa0f3be51 Fix condition to filter out items for Command/Action key lists (#4894)
I introduced this bug when amended ff0dfb83314f62cefaba3da09ae89afce946826e
2025-01-06 16:57:34 -03:00
Gaspar Capello
ff0dfb8331 Fix regression: empty Edit > Keyboard Shortcuts > Action Modifiers (fix #4893) 2025-01-06 16:30:32 -03:00
Gaspar Capello
912af16453 Fix locking a layer reverts changes (fix #4586) 2025-01-02 16:57:52 -03:00
David Capello
8ec836c727 Update laf module 2024-12-26 16:07:18 -03:00
David Capello
cb7549e43c [clang-tidy] Disable misc-include-cleaner 2024-12-26 16:06:09 -03:00
Ryan Carsten Schmidt
71654e4b8e Add USE_SHARED_TINYEXIF option
See #4843

When this option is enabled, it requires a version of TinyEXIF newer
than 1.0.2 (which is the latest version that has been released),
specifically the change in cdcseacave/TinyEXIF@d75f772. The request to
release a new version of TinyEXIF is cdcseacave/TinyEXIF#18.
2024-12-18 09:43:15 -03:00
David Capello
9f552598ff Minor fixes in coding style guide 2024-12-18 08:41:51 -03:00
David Capello
11184b453f Update coding style guide with new clang-format rules 2024-12-18 08:35:20 -03:00
David Capello
daecb2001b Add .git-blame-ignore-revs file
This file can be used with --ignore-revs-file param or
blame.ignoreRevsFile config to ignore global formatting changes which
don't help to use git-blame.
2024-12-17 14:08:12 -03:00
David Capello
b2e4f78b69 clang-format all files 2024-12-16 10:10:34 -03:00
David Capello
4b3ff3369e Update laf module 2024-12-16 09:52:55 -03:00
David Capello
d8fdc22648 [precommit] Add .m and .mm files to clang-format 2024-12-14 00:07:23 -03:00
David Capello
d0dbc78f1c Revert "[clang-format] Set SeparateDefinitionBlocks=Always"
This reverts commit d38565f64e4c0304b8ea2ae060c9e1c11ba5a863.

It added blank lines between one line member function definitions
inside class bodies/header files, something which is undesirable.
2024-12-13 19:59:24 -03:00
David Capello
6555e74d83 [clang-format] We use west const (might fix #4361) 2024-12-12 22:16:55 -03:00
David Capello
b146f0648e [clang-format] Set PackConstructorInitializers=CurrentLine
We prefer two kinds of formatting for constructors:

  Ctor() : a(), b() {}

  Ctor()
    : aaa()
    , bbb()
    , ccc()
2024-12-12 21:53:22 -03:00
David Capello
70ec2d422f [clang-format] Enable the alignment of short "case: break;" statements 2024-12-12 20:13:40 -03:00
David Capello
f19cbe8a37 [clang-format] Set AllowShortCaseLabelsOnASingleLine=true
Allows "case value: stmt; break;" in one line if it's short enough.
2024-12-12 20:02:36 -03:00
David Capello
d38565f64e [clang-format] Set SeparateDefinitionBlocks=Always
With the current code it makes no difference, but it will force new
definitions to be in its own block, e.g. we cannot define two
functions without a blank line between then.
2024-12-12 19:54:49 -03:00
David Capello
4a9ccf27b4 [clang-format] Set ReflowComments=1 to allow adjusting comments
Allows to format the code in better ways adjusting the comments to fit
the column limit. In few cases the comment will require to be moved to
other place (e.g. at the top of a statement rather than to the side of
it).
2024-12-12 19:45:39 -03:00
David Capello
1447e829f7 [clang-format] Change AllowAllParametersOfDeclarationOnNextLine=false
With this we prefer to format a function declaration as:

  int function(arg1,
               arg2,
               arg3);

Rather than:

  int function(
    arg1, arg2, arg3);

Cons: This makes the definition of NewParams structures a bit worse.
2024-12-12 19:29:01 -03:00
David Capello
17bb11fc42 [clang-format] Change SpaceInEmptyBlock=false
I love { } for empty blocks, but it looks like {} is too common among
developers now.
2024-12-12 19:20:05 -03:00
David Capello
28043e8305 [clang-format] Change SpacesBeforeTrailingComments=1 2024-12-12 19:15:20 -03:00
David Capello
b38a3c03eb [clang-format] Change AllowAllArgumentsOnNextLine=false
With this we prefer to format function calls as:

  int value = function(arg1,
                       arg2,
                       arg3);

Or:

  int value =
    function(arg1, arg2, arg3);

Rather than:

  int value = function(
    arg1, arg2, arg3);
2024-12-12 19:03:04 -03:00
David Capello
215f22cce3 [clang-format] New ColumnLimit=100 and new penalty weights
Making PenaltyBreakAssignment bigger creates better looking
const/variable declarations, where the following term to the
assignment operator is in the same line.
2024-12-12 18:38:53 -03:00
David Capello
8cf1a185b6 [clang-format] Set AlignArrayOfStructures: Left
We get better results when defining command Params and scripting
structures (methods/properties).
2024-12-12 16:28:52 -03:00
David Capello
aff027dcf4 Update clang-format config with --dump-config (clang-format v19.1.5) 2024-12-12 15:52:32 -03:00