Joshua Ogunyinka
60b5df4030
Add missing language strings for the color bar
2022-10-12 13:19:32 -03:00
Joshua Ogunyinka
3c815ac1bd
Add missing language strings for the timeline/context bar
2022-10-12 13:19:20 -03:00
David Capello
c7e4416f95
Merge branch 'beta'
2022-10-11 19:05:46 -03:00
David Capello
d195561b7f
Merge branch 'beta' ( #3548 )
2022-10-11 18:59:39 -03:00
David Capello
178d8e1775
Disable multiple UI windows by default ( #3548 )
2022-10-11 18:58:32 -03:00
David Capello
a5ac9ada27
Merge branch 'main' into beta
2022-10-11 18:50:09 -03:00
David Capello
c253bfbedd
Simplify FilenameInfo initialization
2022-10-06 11:49:05 -03:00
Gaspar Capello
16362cc511
Fix {duration} file format always gives an incorrect number ( fix #2998 )
...
Before this fix, the string '{duration}' in the file format gave an incorrect/random and constant number across all frames. This happened in Save-AS, Export File, CLI, Json on Export Sprite Sheet.
2022-10-06 11:28:16 -03:00
David Capello
a85b61e4b1
Update laf module
2022-10-06 11:19:44 -03:00
Jeremy Behreandt
1133f4cc0f
Floor Mod in Shift Image Mask
...
Changed shift image with mask routine to use floor modulo (or Euclidean remainder). Switched from two nested for loops to one for loop.
In response to bug report at https://community.aseprite.org/t/app-command-movemask-error-when-wrapping-with-a-value-higher-than-sprite-width/10437 .
2022-09-30 11:11:02 -03:00
David Capello
ba3452b059
Merge branch 'main' into beta
2022-09-29 17:23:11 -03:00
David Capello
b6a9a6ce0a
Update laf module
2022-09-29 17:16:42 -03:00
David Capello
6b21fec417
[lua] Add "ev" args to "change" sprite event, to ask for "ev.fromUndo"
...
In this way we can know if the event was generated from a
undo/redo/undo history change and not from the direct user
manipulation of the sprite.
Useful for scripts like in #3539
2022-09-29 12:10:09 -03:00
David Capello
5c4024c44f
Replicate same changes from c0dfb832d8
for redo ( #3539 )
2022-09-29 11:04:05 -03:00
David Capello
c0dfb832d8
Fix crash if a script modifies the sprite when we're undoing/redoing ( fix #3539 )
...
To do this the script must be listening the sprite changes (which are
generated on undo/redo commands too).
2022-09-29 10:57:40 -03:00
Gaspar Capello
022c0c38df
Fix dynamics + gradient + no dithering + fg or bg is mask color results in an opaque stroke.
...
Before this fix, dynamic + gradient (pressure or velocity) + no dithering + fg or bg = mask color results in an opaque stroke.
2022-09-28 18:50:01 -03:00
Martín Capello
4ff4274deb
Refactor some conditional expressions to fix a compiler warning
2022-09-28 17:08:11 -03:00
David Capello
88594bfa0e
Merge branch 'main' into beta
2022-09-28 16:20:03 -03:00
David Capello
00be9afcea
Avoid warning about use of uninitialized variable
2022-09-28 15:56:26 -03:00
David Capello
008df4d03a
Add ui::Paint = os::Paint = SkPaint
...
So now we can have access to Skia SkPaint instance directly from
Aseprite UI code (and set the shader, and other properties that are
not yet well-wrapped in laf-os).
We've simplified ui::CheckeredDrawMode with
ui::set_checkered_paint_mode() function, as now the checkered
background shader is stored in ui::Paint (SkPaint) instead of
ui::Graphics state.
2022-09-28 15:49:30 -03:00
David Capello
9c09a55487
Avoid warning in Release mode in View::updateView()
2022-09-26 19:49:26 -03:00
justanobdy
f7154aa0d8
Add SUSE dependencies
2022-09-26 11:19:57 -03:00
Kacper Woźniak
75627bd148
Fix the group attribute for Slice Properties
2022-09-26 11:00:10 -03:00
Gaspar Capello
59fff4ba9c
Fix bmp file and bitmap size are incorrectly set during save command ( fix #3534 )
...
Before this fix, file and image sizes were calculated incorrectly. This caused problems for some viewers/browsers/engines to load BMPs created in Aseprite.
2022-09-23 18:07:23 -03:00
David Capello
896c02c67f
Fix several bugs converting layers (copy user data, blend mode and opacity)
2022-09-23 12:30:22 -03:00
Martín Capello
d53f2f75a5
Fix Advanced Mode disables Tilemap tool ( fix #3478 )
2022-09-22 15:47:06 -03:00
Gaspar Capello
877ae9eeec
Fix uninstalling (or updating) an extensions that has subdirectories results in an error ( fix #3385 )
...
Prior to this fix, any additional external files or directories within the Extension's directory tree, break the subdirectory removal iteration, resulting in empty subdirectories and a console error.
2022-09-22 11:30:48 -03:00
Martín Capello
fecfbb1145
Fix icon's Y position when the item is in the last row of a ButtonSet with more than one row ( fix #2676 )
2022-09-20 17:51:54 -03:00
Martín Capello
6e57546aa9
Fix text Y position when the item is in the last row of a ButtonSet.
...
The last row of items are a bit taller to make room for the button border, so this compensates that.
2022-09-20 17:51:52 -03:00
Martín Capello
8d5f281998
Fix index mode spray not handling masked color as expected ( fix #3063 )
2022-09-20 14:35:21 -03:00
Gaspar Capello
8eae7c00ae
When eyedropper tool picks a pixel of mask color, the FG color changes to entry 0 ( fix #2813 )
2022-09-20 14:28:00 -03:00
David Capello
05dd5f8db7
Merge branch 'fix-export-layers-same-name'
2022-09-20 14:25:22 -03:00
Gaspar Capello
fbf62407d3
Fix gif opening causes color reindexing when duplicate colors in color table ( fix #3426 )
...
If the RGB color at index 'i' of the local gif palette and the sprite palette match, there is no need to call findMatchColor(). This prevents indexes from being reassigned undesirably.
Also, in the special case that a global palette exists and as long as no local palette appears during frame iteration, it is not necessary to call findMatchColor() since the global palette is equal to the sprite's palette (in colors and order).
2022-09-20 13:52:15 -03:00
David Capello
eadef19924
Update submodules
2022-09-16 12:30:13 -03:00
David Capello
d012bd2d45
Add abstract app::Renderer
2022-09-15 12:39:59 -03:00
David Capello
a471ac8425
Update laf/clip/fmt submodules
2022-09-15 12:29:52 -03:00
David Capello
20cc4ce61b
Minor syntax changes for readability of conditions in assignments
2022-09-15 10:43:50 -03:00
David Capello
b3ecf6985f
Prefer passing arguments by value instead of by reference when possible
...
Accessing values should be faster than accessing reference/pointers.
2022-09-15 10:31:31 -03:00
David Capello
c4fefadf79
Move local variable "alpha" inside lambda function
2022-09-15 10:30:17 -03:00
Gaspar Capello
aa41b742bd
Fix hidden colors should be discarded ( fix #3505 )
...
Before this fix, hidden pixels (alpha == 0 and non-zero RGB values) were added to the octree map.
2022-09-15 10:25:18 -03:00
Martín Capello
a7145ba09c
Add asserts to detect when MinSize > MaxSize
2022-09-15 10:06:11 -03:00
Martín Capello
f454d9a0af
Add "minheight" properties to avoid std::clamp asserts in visual studio when lo > hi
2022-09-15 10:01:50 -03:00
Martín Capello
826fc1a5fd
Remember layer index between export operations
2022-09-13 17:09:58 -03:00
David Capello
eced4734aa
Merge branch 'main' into beta
2022-09-09 13:53:26 -03:00
David Capello
9b917fe197
Update laf module
2022-09-09 13:52:40 -03:00
David Capello
f925e22561
Don't encourage the usage of layerIndex param in ExportSpriteSheetParams
...
Until we don't have a standarized way to indicate layers by indexes.
2022-09-05 17:19:53 -03:00
David Capello
d5f54da021
Avoid hardcoded number of initial items added in the layers combobox
2022-09-05 17:19:53 -03:00
Martín Capello
acdb501fc8
Use layer index to avoid conflicts when exporting sprites with layers that have the same name ( fix #2656 )
2022-09-05 17:19:53 -03:00
David Capello
03148f9c7c
Add SENTRY_ENV option
2022-09-05 16:28:44 -03:00
David Capello
f54605e1ea
Fix typo with SENTRY_DSN option name
2022-09-05 16:21:45 -03:00