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
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
David Capello
854bb2e8f3
Fix WheelAction::ToolSameGroup/ToolOtherGroup in DraggingValueState ( fix #3459 )
...
These actions weren't working correctly because we have to take
special care when we change the tool group, i.e. the "initial
position" used to calculate the delta from "mouse pos - initial pos"
must be updated to reset the delta to change tools inside the same
tool (this is the new m_initialPosSameGroup member variable).
2022-08-08 09:44:04 -03:00
Gaspar Capello
12e59b887f
Add remember new tilemap layer base index ( fix #2735 )
2022-08-04 14:30:11 -03:00
David Capello
05bf34f084
Merge branch 'main' into beta
2022-08-02 16:48:32 -03:00
Gaspar Capello
55885ee266
Fix regression: TextBox isn't rendering text (doesn't update the bounds area of the text box)
...
Regression in dd0c296209
(Use
tooltip_text style & color to paint tooltip windows #2554 ).
Prior this fix, text box does not update its bounds area because it
has not a style assigned.
Fix #3442 , fix #3443
2022-08-02 16:39:18 -03:00
David Capello
db38a56558
Merge branch 'main' into beta
2022-07-20 16:10:40 -03:00
David Capello
571134c1b4
Add option to apply Saturation/Value to Hue slider in Tint/Shade/Tone optionally
...
This was changed in df33744c85
, but now
we're adding an option to switch between both behaviors. We prefer to
keep the old behavior as the default one and the new one as an
optional preference.
Related to: https://community.aseprite.org/t/15065
2022-07-20 12:47:50 -03:00
Martín Capello
22de483fc7
Remove "Enter license" menu item when DRM feature is not enabled
2022-07-19 15:43:31 -03:00
David Capello
3db8267270
Merge branch 'main' into beta
2022-07-19 10:35:13 -03:00
David Capello
da58670dd0
Revert "Add '{title}' and '{layer}' functionality to the Export dialog ( fix aseprite/aseprite#3363 )"
...
Fix crash reported on v1.2.36/v1.3-beta17, ctx->activeDocument() can
be nullptr.
This reverts commit 1f5e4cfc4f
to fix #3431
2022-07-19 10:29:16 -03:00
David Capello
5ec88ad659
Merge branch 'main' into beta
2022-07-18 16:05:37 -03:00
David Capello
dd0c296209
Use tooltip_text style & color to paint tooltip windows ( fix #2554 )
2022-07-18 16:00:13 -03:00
David Capello
db1faf8f7b
Merge branch 'main' into beta
2022-07-18 15:32:27 -03:00
David Capello
7c8153b5ec
Use selection bounds if they're visible on ImportSpriteSheet by default
2022-07-18 12:47:54 -03:00
David Capello
df33744c85
Improve color selector shaders
...
* Removed conversion from RGB -> HSV/HSL for each pixel (we just pass
the HSV/HSL values directly to the shader). In this way we don't
lost some hue information for some special cases like white/black
colors (probably related to: https://community.aseprite.org/t/14904 )
* Now Tint/Shade/Tone selector changes the aspect of the Hue slider
depending on the current saturation/value (this was changed in the
non-shader version too)
2022-07-18 12:01:12 -03:00
David Capello
4389788a1d
The document associated w/SpriteEvents can be nullptr in special cases
...
SpriteEvents can be re-created just when we're closing the sprite if
we access Sprite.events property in app 'sitechange' event. When this
second instance of SpriteEvents is deleted after the sprite was
closed, the document cannot be found (as it was already destroyed).
Associated test:
02a2f1f933
2022-07-16 13:14:24 -03:00
David Capello
f7dee88901
Fix uninitialized rgbmap (found w/MSVC debug, GitHub actions failed)
...
Regression from 2785a9fef7
2022-07-16 11:47:52 -03:00
David Capello
1912053f33
Merge branch 'main' into beta
2022-07-15 17:30:39 -03:00
David Capello
f4e83371b8
Several minor improvements to the status bar
...
* Remove "%3d" for integers (just use "%d"), this is a legacy format
when the text was a monospace font (it was present from the very
beginning of the times, when we used the Allegro font)
* New :delta: icon (before :offset: which didn't exist in the theme)
* Show useful info for MovingCelState: mainly cel bounds
2022-07-15 17:03:18 -03:00
David Capello
7e19592470
Preview the modified image for brush slots that don't save image colors
...
This is to show the brush image with the new fg color in the brush
popup instead of the original image when image colors shouldn't be
preserved for that specific slot.
2022-07-15 12:49:48 -03:00
David Capello
60a4ebf8f6
Minor change in StatusBar::showColor() to use std::string/fmt::format
2022-07-15 12:30:15 -03:00
David Capello
44bb1c4e48
Fix bug losing original image colors from custom brushes ( fix #3375 )
2022-07-15 10:05:50 -03:00
Gaspar Capello
f7b6674680
Fix Marqueed selection gets some rows duplicated when moved left and right over left canvas edge with Ctrl still pressed #2891
...
Prior to this fix, moving a marquee selection while holding down the Ctrl key outside the left/top area of the canvas results in a 1px distortion of the marquee image. This distortion is due to a false transformation when it is required to get the corner bounds, due to rounding the float coordinates towards 0 instead of the nearest left/top integer. The discrepancy occurs within the `getDraggedImageCopy`, `redrawExtraImage`, `drawImage` and `drawMask` functions.
2022-07-14 14:41:01 -03:00
Gaspar Capello
2785a9fef7
Remove fillOrphansNodes(), now new colors are added to the octree color arragement
...
This gives more accuracy in the color picking criteria on new images
pasted into an INDEXED sprite.
Also, added findMaskColor to fix the behavior reported in #3207
Both issues are related when RGBMAP is created. The 'mask color' and
'mask index' must be defined correctly to include/exclude during the
table/octree map color search.
To do: Converting sprite to INDEXED should add 'mask color' to the
palette when color count < 256 and transparent color isn't in the
palette.
2022-07-14 14:27:20 -03:00
David Capello
f8f925c634
Merge branch 'main' into beta
2022-07-13 19:49:03 -03:00
Joseph-Eugene Winzer
da81c0266d
Fix empty undo history crash ( fix #3417 )
...
m_undoHistory is not valid for tabs other than sprites. For example
opening the README or Home tab does not initialize the undo history,
thus aseprite will segfault when it tries to get its first entry.
2022-07-13 05:18:04 +02:00
David Capello
d46724329f
Minor improvement in FlattenLayers to avoid some cmds
...
Instead of creating cmd::SetLayerName and cmd::MoveLayer, we can add
the layer with its name and in the correct place directly.
2022-07-11 10:10:36 -03:00
David Capello
6e0394b7dc
Fix using MoveMask command without visible selection
...
Issue found testing #2796 without selection/without calling SelectTile
command.
2022-07-07 16:33:39 -03:00
David Capello
4f2eae6b77
Use C++17 [[fallthrough]] if needed
2022-06-29 20:14:03 -03:00
David Capello
b01c28c48d
Add missing override modifier
2022-06-29 20:05:58 -03:00
David Capello
7aa90db770
[lua] Add undo information in Sprite:newSlice() ( fix #3393 )
2022-06-29 19:46:37 -03:00
David Capello
72df89f917
Fix ambiguous mix of || and && in if-expression
2022-06-29 11:21:58 -03:00
David Capello
d1e08fdb2f
Fix initialization order of AsepriteUpdate members
2022-06-29 11:10:18 -03:00
Martín Capello
bbbf866775
Fix name of define used in ifdefs
2022-06-28 19:16:36 -03:00
Martín Capello
627c96228b
Replace use of the new operator with std::make_unique
2022-06-28 19:16:32 -03:00
Martín Capello
d63c0f7e4b
Remove unnecessary DRM_CONFIGURE macro definition
2022-06-28 19:16:27 -03:00
Martín Capello
c640aee88a
Add app url parameter to DRM_CONFIGURE macro
2022-06-28 19:16:24 -03:00
Martín Capello
11d6eb1d07
Include ui/timer.h
2022-06-28 19:16:19 -03:00
Martín Capello
6535defe3c
Improve installation phases handling
2022-06-28 19:16:16 -03:00
Martín Capello
c764e364af
Add installation thread to the update process
2022-06-28 19:16:07 -03:00
Martín Capello
7ec08ca54c
Add Aseprite update dialog and fix enter license dialog
2022-06-28 19:16:03 -03:00
Martín Capello
1403424f3a
Update licence activation dialog to use a new version of the DRM's license manager that doesn't emit events
2022-06-28 19:15:47 -03:00
Martín Capello
b95e402449
Remove redundant include
2022-06-28 19:15:42 -03:00
Martín Capello
854e4eb370
Add conditional compilation of code for DRM-enabled trial version
2022-06-28 19:15:34 -03:00
Martín Capello
776b97deef
Refactor EnterLicense dialog and add license activation handling
2022-06-28 19:13:55 -03:00
Martín Capello
2639c36b2f
Create EnterLicense dialog
2022-06-28 19:09:10 -03:00
Martín Capello
588d8027f4
Conditionally compile the license activation code when the ENABLE_DRM flag is defined
2022-06-28 19:09:10 -03:00
Martín Capello
122769c836
Change the error message when the Save operation is not available
2022-06-28 19:09:10 -03:00
Martín Capello
f672193732
Fix linked libraries when ENABLE_DRM is on.
2022-06-28 19:09:10 -03:00
Martín Capello
740dd166de
Refactor the code to change the "register" dialog for "enter_license" dialog
2022-06-28 19:09:10 -03:00
Martín Capello
fcac48cccb
Add option to enter Aseprite license key ( #2664 )
...
This is an initial version to add an automatic update feature in the
future.
2022-06-28 19:09:10 -03:00
David Capello
faecd682fc
Merge branch 'main' into beta
2022-06-28 19:05:54 -03:00
Martín Capello
306e13dfad
Clear the exported images with its mask color instead of 0 ( fix #3391 )
2022-06-28 18:43:23 -03:00
Gaspar Capello
1f5e4cfc4f
Add '{title}' and '{layer}' functionality to the Export dialog ( fix aseprite/aseprite#3363 )
...
Also Add '{title}' functionality to CLI dialog on sprite-sheet file name
2022-06-28 18:42:33 -03:00
David Capello
3d0b5d809c
Fix bug in move_or_copy_palette_colors() accessing out-of-range index
2022-06-28 15:17:29 -03:00
David Capello
6d30f274f4
[msvc] Fix problem using invalid min/max bounds in std::clamp
...
There is an assert() in the std::clamp() impl on MSVC that checks if
the min/max values are valid.
2022-06-28 14:02:18 -03:00
David Capello
caf475b2dc
Merge branch 'main' into beta
2022-06-15 13:44:34 -03:00
David Capello
b7d5d4a2c9
Editable resize factor in File > Export ( fix #3007 )
...
Related to #3008
2022-06-15 12:25:43 -03:00
David Capello
af74f8bc84
Fix memory leak when the created cel is not used in ExpandCelCanvas
2022-06-14 23:25:10 -03:00
David Capello
4aa5fedfec
New "on the fly" resize when saving/exporting image ( fix #1112 )
...
Implemented using a new FileAbstractImage interface to get scanlines
for each frame automatically resized (without modifying the original
sprite/without using SpriteSize command/adding new undo information).
Related to #3008
2022-06-14 23:19:39 -03:00
David Capello
e2798bc849
Fix crash creating the "No Recent File" w/AppMenuItem() ( fix #3371 )
2022-06-14 14:01:28 -03:00
David Capello
30b61e501e
[lua] New Image(Image, Rectangle) ctor
2022-06-14 10:04:54 -03:00
David Capello
82cd244a6e
Add support to use SaveFile commands from CLI (without UI)
2022-06-13 19:19:44 -03:00
David Capello
ddc1b76214
Convert SaveFileBaseCommand to CommandWithNewParams
...
With this patch we fixed some use cases:
* We can show the ui with a default filename { filename=..., ui=true }
* We can specify fromFrame/toFrame for SaveFileCopyAs
2022-06-13 17:04:12 -03:00
David Capello
d160fb8b91
Minor changes in SaveFileCommand to use enums instead of bool params
2022-06-13 12:46:11 -03:00
David Capello
8f44b521b6
Merge branch 'main' into beta
2022-06-10 10:31:13 -03:00
David Capello
4471dab289
[osx] We cannot use std::optional::value() if we want to support macOS 10.9
...
It looks like value() member was introduced in macOS 10.13 (error
detected because we use CMAKE_OSX_DEPLOYMENT_TARGET=10.9).
2022-06-09 19:07:08 -03:00
David Capello
71d885d2a0
Replace base::clamp -> std::clamp as now we use C++17
2022-06-09 19:05:48 -03:00
David Capello
b2d46bf10b
Use std::unique_ptr/optional in more App objects
2022-06-09 17:29:40 -03:00
David Capello
99c0d5b743
Fix SpriteEvents destruction ( fix #3162 )
...
Classic "static initialization order fiasco" but in the destruction
phase.
2022-06-09 16:28:25 -03:00
David Capello
1630416991
Fix a crash when a script generates a Fg/BgColor change when closing the app
...
If a script Dialog changes the app.fgColor/bgColor in its onclose
callback, it will notify all fgColor/bgColor preference
observers (ContextBar is one of them), if we don't disconnect from
these signals when we're deleting ContextBar, the signals will call a
deleted slot/connection from app::script::close_all_dialogs().
2022-06-08 16:24:36 -03:00
David Capello
39ba883f90
Fix bugs executing plugin init/exit() functions in different situations
...
Reinstalling a previously enabled plugin extension wasn't running the
init() function, and uninstalling it wasn't calling its exit()
function.
2022-06-07 15:02:54 -03:00
David Capello
a39e235b23
Don't store a Command* pointer in AppMenuItem ( fix #3359 , fix #3360 )
...
Instead of storing a Command* we can store the command ID, which it's
less problematic in extreme cases where the Command that is being
referenced is deleted or recreated, i.e. when a plugin is
disabled/re-enabled.
2022-06-07 14:47:40 -03:00
David Capello
f9d0e441d3
Be able to select a range of colors/tiles to the end just moving the mouse outside the palette region
2022-06-02 10:32:15 -03:00
David Capello
eb4fbe9114
Fix bug selecting any tile from the color bar ( fix #3357 )
2022-06-02 10:31:15 -03:00
David Capello
77771b703b
Merge branch 'main' into beta
2022-05-30 20:41:35 -03:00
David Capello
93dcc0349f
Fix warning by ThreadSanitizer in HttpLoader
2022-05-30 19:41:41 -03:00
David Capello
6ce205e0db
Add experimental option to disable shaders for color selectors ( #960 )
2022-05-30 19:35:01 -03:00
David Capello
1781ee0f15
Fix bug painting a spot w/brush size=max when releasing the mouse after auto-scrolling
2022-05-30 18:45:57 -03:00
David Capello
251323a4d5
Add new MouseMessage() ctor to copy full information of the original message
...
This is mainly to keep the pressure information when a MouseMessage is
copied, and any future property which could be added in MouseMessage.
2022-05-30 18:44:12 -03:00
David Capello
23b269a6bc
Use shaders for ColorWheel selector
...
This patch includes a fix for the RYB color wheel (the blue was not in
the correct hue angle).
2022-05-27 19:57:37 -03:00
David Capello
b561a6fbfb
Use Sentry breadcrumbs to get wintab32.dll information
...
Useful to detect which vendor is causing most of the crashes related
to wintab32.dll. Related to:
https://github.com/aseprite/aseprite/issues/2785#issuecomment-1033222868
2022-05-26 19:34:23 -03:00
David Capello
0e9001fbd3
Go to Desktop instead of showing an error if a parent folder is deleted in the middle of files navigation
2022-05-24 09:06:32 -03:00
Kukhyeon Heo
c457f1680a
[win] Fix crash browsing files when a folder is deleted ( fix #2950 )
2022-05-23 18:21:11 -03:00
David Capello
684d06ede8
Merge branch 'main' into beta
2022-05-23 18:04:55 -03:00
David Capello
fd430603a0
[lua] Allow to compare different docobj types without failing ( fix #3218 )
...
Just return false if we compare a layer with a sprite, etc.
2022-05-23 17:15:15 -03:00
David Capello
3ac4ca8869
Create a custom widget for UndoHistory ( fix #3281 )
...
Several performance issues fixed (as we avoid keeping a ListBox with
ListItem in sync with the UndoHistory/UndoStates). There is still some
room for improvement: e.g. grouping several ui::View::updateView() in
just one if several onAddUndoState() will be called (e.g. when we are
running a script without transactions).
2022-05-23 16:19:06 -03:00
David Capello
1366a6948c
Fix performance issues adding/deleting widgets (related to #3281 )
2022-05-20 11:03:12 -03:00
David Capello
b9206cc872
Fix locked sprite errors moving/copying multiple cels when the Cel (or Layer) Properties dialog is open ( fix #3278 )
2022-05-19 19:15:32 -03:00
David Capello
52779d4b09
Fix memory leak in UserDataView simplifying its ctor
...
Each "new gen::UserData" wasn't being freed.
2022-05-19 18:56:21 -03:00
David Capello
ff5afba6ae
Merge branch 'main' into beta
2022-05-19 16:55:30 -03:00
David Capello
4f9fe90304
Display the Hue bar in ColorTintShadeTone with saturation/value=1.0
...
This is the previous behavior, but might change in the future.
2022-05-17 13:43:22 -03:00
David Capello
aca96c6d36
Use shaders for ColorTintShadeTone/ColorSpectrum selectors ( #960 )
...
This is the first step to optimize the painting code of ColorSelectors
which were using a background thread to paint their
surface. ColorWheel is still using the old method (without shaders).
This impl is already a lot faster on CPU, and it's ready for
GPU-acceleration in a future.
2022-05-17 13:24:53 -03:00
David Capello
4b99d3022a
Minor change in ColorSelector to resize the previous rendered canvas
2022-05-17 09:07:52 -03:00
David Capello
922f99ef87
Use Graphics::drawSurface() with explicit Sampling/Paint options
2022-05-17 09:07:24 -03:00
David Capello
b5414c5d95
Merge branch 'fix-2776' of https://github.com/ruerob/aseprite into ruerob-fix-2776
2022-05-13 15:25:18 -03:00
David Capello
0a3644dfbb
Update laf module with initial GPU support ( #960 )
...
Anyway this is incomplete and Aseprite is not yet ready to support GPU
acceleration (as the rendering phase is CPU intensive).
2022-05-13 11:41:44 -03:00
David Capello
8d2863a58b
Merge branch 'main' into beta
2022-05-05 09:57:29 -03:00
David Capello
adaef68bbb
Minor change in macros to detect platform
2022-05-05 09:39:16 -03:00
David Capello
7fea99a718
Move the "invert wheel for brush size" option to Edit > Keyboard Shortcuts > Mouse Wheel
2022-05-05 09:26:19 -03:00
David Capello
04903692f9
Add some comments & simplify code handling WheelAction::BrushSize
2022-05-05 09:15:00 -03:00
Thanos Kamber
2a00d41e95
Changed the default behaviour in Windows and Linux
...
This commit makes the default behaviour for changing the brush size to
be scroll up to increase brush size, this should already be the case
in macOS.
Note: It's correct in Windows and Linux, but I don't have a mac to test
it with.
2022-05-04 18:49:22 -03:00
Thanos Kamber
b9dfad6b6b
Option invert scrolling direction for brush size ( closes #2364 )
...
This commit adds the option to invert if the brush size increases or
decreases when holding CTRL and scrolling as mentioned in the issue #2364
By default, the previous behavior is kept.
2022-05-04 18:48:45 -03:00
David Capello
9248f53447
Don't invalidate the cached file system on each action
...
We can use the refresh button for this, and in a future we could
refresh it when the window loses focus and is activated again, or
listening the file system changes.
2022-05-03 15:46:01 -03:00
David Capello
db84c02e94
Fix crash accessing an invalid iterator in FileSelector::onRefreshFolder()
2022-05-03 15:24:55 -03:00
David Capello
debd22014c
Fix program hanging when calling FileSelector::refresh()
...
The FileSystemModule is already locked, so if we use LockFS another
time it will try to lock a FileSystemModule::m_mutex for a second
time.
2022-05-03 15:14:44 -03:00
David Capello
f41c6bc1c5
Fix compilation in macOS (and add Command+R to refresh)
2022-05-03 15:11:47 -03:00
David Capello
a004b7dfe1
Merge branch 'fix-232' of https://github.com/Enfyve/aseprite into Enfyve-fix-232
2022-05-03 15:11:27 -03:00
David Capello
dfa357eb8d
Add an experimental CommandResult for the execution of commands
...
This makes possible to return true or false after the execution of
each command app.command.CommandName() if it successes or fails.
Currently the Lua API documentation says something about this here:
https://github.com/aseprite/api/blob/main/api/command/ReplaceColor.md#replacecolor
But this is not true, the function always returned nil. Now it will
return true or false.
2022-04-29 09:53:57 -03:00
David Capello
cc7da16691
Run Console in background so commands can continue running and logging to the console if needed ( fix #3227 )
2022-04-28 21:58:15 -03:00
David Capello
94065571b5
[x11] Add possibility to set a user-defined string to detect styluses ( #3176 )
2022-04-28 16:33:21 -03:00
David Capello
f638b5ca2b
Fix minor memory leak loading a doc::Palette from backup data
2022-04-26 12:16:31 -03:00
David Capello
c15f374690
Fix timeline re-painting issue when changing tag color ( #3242 )
...
This is the worst possible hack, but we're already doing this for cel
and layer color. Something to think about with #3266
2022-04-25 15:14:02 -03:00
David Capello
b31affd2e8
Fix timeline re-painting issue when changing tag range ( #3242 )
2022-04-25 14:00:26 -03:00
David Capello
96cb38c29d
Fix timeline re-painting issue when renaming a tag ( #3242 )
2022-04-25 13:32:16 -03:00
David Capello
1601f7f4b1
Fix timeline re-painting issues when copying & pasting cels ( fix #3242 )
2022-04-25 12:54:13 -03:00
David Capello
2a59076f49
Merge branch 'main' into beta
2022-04-25 11:45:31 -03:00
David Capello
e45e05eaff
Don't create new threads for files we couldn't generate a thumbnail for
2022-04-22 13:12:48 -03:00
David Capello
319824021b
Keep plugin preferences when re-installing an extension ( fix #3259 )
2022-04-22 09:09:10 -03:00
David Capello
65ef6f8e96
Replace utf8 iterators with utf8_decode ( fix #3260 )
...
This should fix some problems decoding invalid UTF-8 strings.
2022-04-21 20:24:49 -03:00
David Capello
75a99360a0
Use std::mutex & std::thread in ThumbnailGenerator
2022-04-21 12:46:21 -03:00
David Capello
f5bce17e7b
Delete unused code in FileOp and FileFormat
2022-04-21 12:23:52 -03:00
David Capello
737a60c5ac
Minor change in ThumbnailGenerator::instance()
2022-04-19 17:46:31 -03:00
David Capello
78ec753a3c
Simplify list of workers in ThumbnailGenerator with unique_ptrs
2022-04-19 17:14:50 -03:00
David Capello
f0a7d1faaa
Fix data race loading next thumbnail without locking the item
...
This was detected with -fsanitize=thread
2022-04-19 17:09:49 -03:00
David Capello
46626bb5ce
Merge branch 'main' into beta
2022-04-13 23:01:12 -03:00
David Capello
e4c2995326
Extensions now support defining keyboard shortcuts ( #1403 , #3239 )
2022-04-13 22:46:48 -03:00
David Capello
721e401052
Fix some memory leaks & simplify code sending UI messages
2022-04-13 21:04:54 -03:00
David Capello
b4d3692927
Add ShowMenu command so the user can customize Alt+top level menu mnemonic shortcuts ( #3239 )
2022-04-12 22:52:09 -03:00
David Capello
93b0e9e520
Fix painting extra straight line using Ctrl+Shift w/Pencil tool ( fix #3196 )
2022-04-12 19:11:20 -03:00
David Capello
43513e0f1b
Don't show tooltip when a new frame/layer is created from a script transaction
...
This might improve the performance of some scripts if it creates
several frames/layers at the same time.
2022-04-11 09:53:01 -03:00
David Capello
11417c56ac
[lua] Add Cel.frame setter to move a cel quickly
2022-04-07 19:48:39 -03:00
David Capello
b4e9d7b155
Fix memory leaks when deleting backups from recovery data
2022-04-07 11:48:49 -03:00
David Capello
adce7ce23e
Merge branch 'main' into beta
2022-04-06 00:12:20 -03:00
David Capello
e61888fc92
Fix compilation when ENABLE_UI is disabled and UIContext isn't defined
2022-04-06 00:10:49 -03:00
David Capello
ab2cef1c29
Merge branch 'main' into beta
2022-04-06 00:00:44 -03:00
David Capello
2594892dd5
Fix crash when a Lua error happens in a Dialog onclose ( fix #3237 )
2022-04-05 23:57:36 -03:00
David Capello
16ca5a55db
Merge branch 'main' into beta
2022-04-05 23:16:55 -03:00
David Capello
3ed969ff0a
Close all docs correctly even in case of exception ( fix #3162 )
2022-04-05 23:07:08 -03:00
David Capello
2a908f79df
lua: Dialog() must return nil if there is no UI available
...
This avoids some crashes when running in --batch mode and some script
tries to create a Dialog().
2022-04-05 20:45:34 -03:00
David Capello
66d74688e2
Merge branch 'main' into beta
2022-03-31 19:34:38 -03:00
Gaspar Capello
683747f412
Remove tag range adjust when exporting sprite sheets ( fix #3210 )
...
Before this fix, tag ranges were adjusted in the json data file, in the 'meta' sector, when the --list-tags and --ignore-empty flags were set.
Particularlly, when --split-layers, --list-tags, and --ignore-empty were on, the calculation of tag ranges could fail with cels with pure mask pixels.
2022-03-31 17:35:49 -03:00
Gaspar Capello
b70a29269d
Fix wrong json export with linked, trimmed cels ( fix #2600 )
...
Before this fix, the json file associated with the exported sprite sheet had wrong 'spriteSourceSize' coordinates in particular cases like this:
- Linked cels
- Export Sprite Sheet options: TrimmedCels + Merge Duplicates + SplitLayers checked
2022-03-31 16:43:14 -03:00
Jeremy Behreandt
d429797359
Fix Lua Color HSL Constructor
...
Changed call from HSV to HSL for Lua Color HSL constructor.
2022-03-29 23:15:17 -03:00
David Capello
c08dc44901
Revert "Fix multi layer movement in tilemap mode ( fix #3144 )"
...
This reverts commit bc050e8f15
.
2022-03-15 13:40:46 -03:00