Commit Graph

7544 Commits

Author SHA1 Message Date
David Capello
e37ddbd7de Merge branch 'tilemap-editor' into beta 2020-08-14 21:08:59 -03:00
David Capello
24a2d9527b Merge branch 'fix-tile-mode' into tilemap-editor 2020-08-14 20:30:52 -03:00
David Capello
0901ce15b5 Make the tiles mode work when cel origin offset != 0,0
Several changes/refactors to make the tilemap tests work, there are
still a couple of things that are not working yet (brush preview when
tile row != 0, and removing tiles with -1 after the tilemap is
expanded).
2020-08-14 20:26:10 -03:00
David Capello
f3e9978bb0 [win] Fix pasting 32-bpp images from Firefox
And any app that use DIBV5 format with BI_RGB compression.
2020-08-13 11:02:01 -03:00
Gaspar Capello
e62efb4124 Add palette gradient based on Hue (fix #2171) 2020-08-12 17:04:25 -03:00
David Capello
432e8d9943 Merge branch 'master' into beta 2020-08-12 14:23:32 -03:00
David Capello
955d0a9c41 [win] Minor change to call CoInitialize()/CoUninitialize() 2020-08-12 11:16:31 -03:00
David Capello
6987a15986 Update submodules 2020-08-12 11:16:16 -03:00
David Capello
282b040b52 [win] Fix copy & paste 32bpp images w/alpha channel from/to some Windows programs
More information:
https://steamcommunity.com/app/431730/discussions/0/1846946102842809327/
2020-08-11 19:30:39 -03:00
Gaspar Capello
d701ef9ffd Fix replace current pallete does not create a palette (fix #2480) 2020-08-11 10:19:37 -03:00
David Capello
ddee4dc0b9 Fix start playing animation on preview window when adding/removing frames (fix #2481) 2020-08-11 08:45:30 -03:00
David Capello
74c1f6af6b Rollback some changes to keep the Site::grid() origin in the cel position
Now ExpandCelCanvas uses a correctly modified doc::Grid that matches
the new and temporal cel position while we are drawing.
2020-08-06 20:26:08 -03:00
David Capello
8b8b062f59 Minor changes 2020-08-06 16:18:53 -03:00
Gaspar Capello
a195487fc0 Fix bounds calculation on tiles drawing outside cel bounds and the filling tile index is tile_i_notile, instead of empty tile. 2020-08-06 10:52:41 -03:00
David Capello
2ffac6803c Merge branch 'beta' into tilemap-editor 2020-08-06 10:47:06 -03:00
David Capello
4e08d12f28 Merge branch 'master' into beta 2020-08-06 10:46:32 -03:00
David Capello
bbfa023b30 Fix crash adding new frames when there are tags present 2020-08-04 22:39:54 -03:00
David Capello
d93264c895 Fix opening files from CLI with new OpenBatchOfFiles utility 2020-08-04 18:22:37 -03:00
David Capello
14fbee19f0 Fix cli_tests when Strings is not available 2020-08-04 18:11:18 -03:00
David Capello
893c8cbe32 Fix minor issues redrawing auto cel guides on Editor
E.g. We could open a (foreground) dialog (e.g. New File), and move the
window, and press the Ctrl key to show the auto-guides (or released it
to hide the auto-guides) for new painted areas of the Editor. This
patch fixes that bug.
2020-08-04 16:29:22 -03:00
David Capello
6862bb8ab0 Fix opening several times the "save changes" alert (fix #2467)
This could happen if we clicked the cross icon in tabs without moving
the mouse.
2020-08-04 15:09:33 -03:00
David Capello
819517b941 Fix reported crash in MovingPixelsState::onUpdateStatusBar()
This should be enough to fix a crash reported where we receive a
onUpdateStatusBar() when m_pixelsMovement is already deleted. It's
called from onLeaveState() when we call notifyGeneralUpdate() which
generates a scroll change and finally updates the status bar.

Crash report: https://igarastudio.zendesk.com/agent/tickets/1239
2020-08-04 11:12:57 -03:00
David Capello
d7a3da9518 Fix crash using opacity slider on CelProperties after deleting a cel
Crash report: https://igarastudio.zendesk.com/agent/tickets/1208
2020-08-04 10:42:28 -03:00
David Capello
430b493e89 Don't show brush edges in BrushPreview::FULLALL when we're in DrawingState
Fixes issue from 8b6116911d
2020-08-03 20:13:34 -03:00
David Capello
49c4534a95 Fix isometric lines when snap angle + from center modifiers are used 2020-08-03 20:09:56 -03:00
David Capello
b95f96f645 Don't use fixes for line brush when the brush size = 1 2020-08-03 20:07:25 -03:00
David Capello
7355d0e2db Add minor checks of .ase header 2020-08-03 17:33:15 -03:00
David Capello
1470108fff Add support to load sprites without extension (identified only by their content) 2020-08-03 17:32:13 -03:00
David Capello
cd21d33fe7 Add missing #includes 2020-08-03 17:19:23 -03:00
David Capello
d97565e4e0 [lua] Fix app.command.SetInkType{ type=... }
Related to https://community.aseprite.org/t/6532/3
2020-08-03 13:52:41 -03:00
David Capello
5edf30687b Add File > Scripts > Rescan option to rescan the available scripts
https://community.aseprite.org/t/6170/6
2020-08-03 13:51:40 -03:00
David Capello
8b6116911d Add extra options to show brush preview with Eraser/Blur/etc. tools
Feature request: https://community.aseprite.org/t/6427
2020-08-03 12:12:52 -03:00
David Capello
d8f6c666de Merge branch 'beta' into tilemap-editor 2020-07-30 16:49:17 -03:00
David Capello
20d763ca4b Merge branch 'master' into beta 2020-07-30 16:48:43 -03:00
David Capello
8c0f81cbba Improve handling of image sequences when dropping files or opening multiple files
Now we can repeat the same action (Agree/Skip the all sequence of
images) for all the dropped files/selected files in the "Open File"
dialog (as in the CLI new behavior).
2020-07-30 16:27:23 -03:00
David Capello
1255b17738 Fix opening image sequences more times from CLI
We've also fixed the Agree/Skip dialog to show a checkbox and repeat
the same action for all image sequences.

Fixes:
https://github.com/aseprite/aseprite/issues/2128
https://github.com/aseprite/aseprite/issues/1936#issuecomment-451565903
2020-07-30 14:33:27 -03:00
David Capello
4cc2c6188d Fix cycling through palette indexes when Edit Mode is on
https://community.aseprite.org/t/6500
2020-07-29 19:24:07 -03:00
David Capello
63460ef9dc Support to encode 1bpp .bmp indexed images
Simplified a little the code merged in #2473

Related issues:
https://github.com/aseprite/aseprite/issues/210
https://github.com/aseprite/aseprite/issues/2472
https://community.aseprite.org/t/3892
2020-07-29 13:46:26 -03:00
David Capello
e9ba49bb9a Fix crash saving grayscale bmps 2020-07-29 11:14:30 -03:00
David Capello
35e7483ed5 Minor change BmpFormat::onSave()
Use "w" and "h" instead of "image->width()/height()"
2020-07-29 11:13:44 -03:00
MacSpain
2d5b080b1f Added saving 4-bit images 2020-07-29 10:07:35 -03:00
David Capello
0f328e1599 Change the number of colors when loading a .bmp file 2020-07-28 18:16:07 -03:00
David Capello
7a534b0a4e [lua] Add Sprite{ fromFile="...", oneFrame=true } to load just one frame 2020-07-28 17:41:01 -03:00
David Capello
11324c207d [lua] Minor changes 2020-07-28 17:40:43 -03:00
David Capello
c4ed8c1450 [lua] We cannot detect existent keys with nil in a table (they aren't added to the table)
All non-existent keys return nil (and nil keys are not added when the
table is created, so we cannot even iterate the table to search for
keys like "always" or "sRGB"). The only solution is assigning a
non-nil value, e.g. { always=true }, { sRGB=true }, etc.
2020-07-28 17:40:19 -03:00
David Capello
c6b42173cd Add some checks to BmpFormat::onLoad() to avoid crashing on some invalid .bmp files 2020-07-28 11:36:16 -03:00
David Capello
7656627605 [lua] Fix calling onclose Dialog event when we close the app (fix https://github.com/aseprite/api/issues/28) 2020-07-28 10:35:38 -03:00
David Capello
2a48c688e2 Fix playback of same tag when adding new frames (fix https://community.aseprite.org/t/6486) 2020-07-27 18:17:48 -03:00
David Capello
0c0510b3b1 Update laf (don't ask info to wintab when -verbose/-debug mode are disabled) 2020-07-27 17:05:43 -03:00
David Capello
866d614737 [lua] Add "ui" and "bounds" params to CanvasSize (fix https://community.aseprite.org/t/4319) 2020-07-27 17:04:17 -03:00