David Capello
896387635b
[lua] Fail if we give an invalid parent to layer.parent setter
2020-05-28 14:24:10 -03:00
David Capello
3a82e64c23
Fix crash caused by ActiveSiteHandler::onBeforeRemoveLayer() that don't remove deleted layers from selected layers
...
This affected only scripts (because UI uses the Timeline to manage the
active range which is already doing this).
2020-05-28 12:26:18 -03:00
David Capello
7a74aef1a7
[lua] Use the correct "controller" when "tool" param is specified in app.useTool()
...
Fix regression introduced in 1ec502d242ddddadf497c9738986edcaed55000b
2020-05-28 12:01:34 -03:00
David Capello
6d2ddf877b
"contiguous" option is true by default for paint bucket-like tools
2020-05-27 15:18:04 -03:00
David Capello
1b08d5248c
Fix Flip command when ENABLE_UI is off
2020-05-27 14:48:16 -03:00
David Capello
c49c6ae068
Link with webpdemux and libwebpmux
2020-05-27 13:11:02 -03:00
David Capello
a6c4368e9c
Update laf module
2020-05-27 12:38:07 -03:00
David Capello
9b26e422f7
Make range boundaries smaller for layers to enable alt+click on icons ( fix #2222 )
2020-05-26 12:02:15 -03:00
Star Brilliant
992d2e002e
Add the Minecraft palette
2020-05-26 19:12:33 +08:00
David Capello
d4b4dfd36d
Fix the ink processing to draw brushes w/alpha compositing on indexed sprites
2020-05-25 17:33:29 -03:00
David Capello
83b2038de1
Remove PaintInk::Type::AlphaCompositing introduced in 1509699a46b4f1d658d6ead4c38c7dd35b10b608
...
"Simple" and "Alpha Compositing" user inks will still use the internal
"PaintInk::Type::Simple" type that is then converted to
"TransparentInkProcessing" when opacity < 255 (alpha compositing
case).
2020-05-25 12:30:53 -03:00
David Capello
f5f8664732
Update laf module
2020-05-22 14:35:17 -03:00
David Capello
013b27bd8d
Use default macOS image in travis
2020-05-22 11:30:41 -03:00
David Capello
6728087407
Update laf module
2020-05-22 11:16:57 -03:00
David Capello
f56931a612
Add missing #include in engine.cpp
2020-05-22 11:15:15 -03:00
David Capello
2bfd3261b5
Define fill_toolloop_params_from_tool_preferences() only when needed
2020-05-22 11:15:04 -03:00
David Capello
3163d00e1e
Avoid multi-line comment warning
2020-05-22 11:14:48 -03:00
David Capello
60c54a3242
Fix edge case w/alpha compositing on indexed images
...
On indexed images, if we paint with alpha compositing and opacity=255,
we can act just like the simple ink, copying the color (the original
index). If we go through the process of color blending, we might loss
the index in sprites that contain palettes with the same color two or
more times.
2020-05-21 20:36:04 -03:00
David Capello
c6720b543a
Move doc::rgba_to_graya_* functions from .h to .cpp
2020-05-21 20:07:23 -03:00
David Capello
847f176f0d
Add new palette hept32 by ENDESGA
...
https://twitter.com/ENDESGA/status/1263381772173062144
2020-05-21 12:08:09 -03:00
David Capello
3898210ca1
Fix some links in README
2020-05-20 19:29:58 -03:00
David Capello
31ccedb07d
More changes to the list of features in README
2020-05-20 19:24:44 -03:00
David Capello
e7a1b9523f
Update list of features in README with more links
2020-05-20 19:01:18 -03:00
Gaspar Capello
1509699a46
Fix Alpha Compositing Ink - Indexed Mode - Pencil tool with transparent color selected.
...
The normal Alpha Compositing Ink behavior is:
Do nothing when the user wants to paint with the transparent color.
Before this fix, Alpha Compositing in Indexed Mode worked like Simple Ink
2020-05-20 17:16:51 -03:00
David Capello
1ec502d242
Add "ink" parameter to app.useTool() + minor needed refactors
2020-05-20 17:15:30 -03:00
David Capello
d71404aa6c
Update link to CLA
2020-05-20 09:56:49 -03:00
David Capello
b922cfcc10
Refactor ToolLoop creation w/ToolLoopParams to add more options to app.useTool()
...
This will be used to add more testing capabilities to app.useTool()
2020-05-19 20:11:47 -03:00
David Capello
39f2269ea5
Don't scale the marching ants pattern
2020-05-19 09:27:24 -03:00
David Capello
3d2013b33c
Draw mask boundaries with a gfx::Path
...
The path is also cached so on each re-paint we can re-use it while
it's still valid.
2020-05-18 17:58:22 -03:00
David Capello
9801010a2b
Update webp module
...
Possible fix for #2387 ?
2020-05-18 08:32:49 -03:00
David Capello
a2cdde8ec8
[lua] Add "enabled" and "visible" properties when creating new widgets
...
Fixed https://github.com/aseprite/api/issues/29
2020-05-15 19:03:46 -03:00
David Capello
f491a2a506
Add ui::Entry::Range to simplify code
2020-05-15 18:24:35 -03:00
David Capello
fa187b35a8
Don't delete extra char using Ctrl+backspace to delete words in ui::Entry
2020-05-15 18:15:59 -03:00
David Capello
7cde901047
Alt+backspace deletes a word too on ui::Entry fields
2020-05-12 15:11:15 -03:00
David Capello
68720424c0
[lua] Dialog:modify{} now can modify the text of a separator
...
Fixes https://github.com/aseprite/api/issues/27
2020-05-11 12:26:43 -03:00
David Capello
d9b0887a3a
Fix crashes running tests from CLI
2020-05-08 19:44:29 -03:00
David Capello
72ceaa010f
Save user data changes correctly in current recovery session
2020-05-08 18:34:54 -03:00
David Capello
7e1e9a238e
Write/read user data from layers when recovering lost sprites ( fix #2373 )
2020-05-08 18:31:48 -03:00
David Capello
46f4002368
Fix crashes saving sprites with '%' char in their filename
...
To fix this we changed the way StatusBar text is handled (we are using
fmt::format() in StatusBar instead of printf-like ... args now).
2020-05-08 17:39:55 -03:00
David Capello
6e4b96f548
Update laf to fix crash when we receive a WM_ACTIVATE ( #2374 )
2020-05-08 12:55:51 -03:00
David Capello
a54e2ce13f
Fix eraser tool/stylus tip when dynamics for gradients are on
2020-05-07 21:40:03 -03:00
David Capello
7b105261ea
Fix syncing brush size/angle with max values after opening dynamics popup
2020-05-07 18:39:58 -03:00
David Capello
4123e98d16
Add option to switch dynamic gradient between BG>FG and FG>BG
2020-05-07 16:08:32 -03:00
David Capello
4087bd5782
Merge branch 'master' of https://github.com/grauw/aseprite into grauw-master
2020-05-07 14:04:17 -03:00
David Capello
9447704989
Update laf module
2020-05-07 13:49:09 -03:00
David Capello
c3ebf40cb1
Fix shading ink for RGB and Grayscale modes
...
The colors in the shades are not necessary to be in the palette or
related to a palette index in these modes (or even more, the color
palettes can be duplicated), the only important things are the values
in the shades for RGB and Grayscale, so in these modes now we access to
ToolLoop::getShade() directly and create a mini-palette to find the
colors there (ignoring the sprite palette completely).
2020-05-06 17:14:47 -03:00
David Capello
6294ac74e0
Fix accessing to invalid indexes in the doc::Remap created for ColorShades
...
This can happen when we've configured a set of color entries in the
shading ink and then we switch between documents with different color
palettes, etc.
2020-05-05 20:13:53 -03:00
David Capello
056cd3cdfc
Minor changes in ColorShades member functions to avoid copying a Shade object
2020-05-05 20:10:54 -03:00
David Capello
82ab0bc40a
Avoid creating an extra brush for the brush preview
2020-05-05 19:42:07 -03:00
David Capello
263236deb3
Several fixed for Dynamics
...
* Now the max value in dynamics is equal to the brush size, so changing
the brush size (e.g. switching between pencil/eraser tools) will
change the max brush size (which is the most common parameter to
change)
* Added mini_slider style for min/max brush/angle values
* Fixed some issues clicking outside the dynamics popup
2020-05-02 11:59:34 -03:00