Commit Graph

4121 Commits

Author SHA1 Message Date
David Capello
b2049f7ce4 Don't destroy app::Document::m_imageCelBuffer 2015-08-19 08:39:48 -03:00
David Capello
3aa621535b Remove undefined BrushPreview::move() member function declaration 2015-08-18 21:35:50 -03:00
David Capello
dd11cffdb7 Use a persistent ImageBuffer for the app::Document's extra cel 2015-08-18 19:38:08 -03:00
David Capello
82243a0763 Add an assert in ToolLoopImpl to check that the editor document is equal to the context's active document 2015-08-18 19:29:37 -03:00
David Capello
2341d4e747 Remove unnecessary return statement 2015-08-18 19:28:49 -03:00
David Capello
b4568f1fdc Add some debug checks in ExpandCelCanvas 2015-08-18 18:34:58 -03:00
David Capello
c0e1852f9f Fix hiding brush preview in other editors when we change the active frame 2015-08-18 17:56:40 -03:00
David Capello
472a7abebd Rename Editor::m_mask_timer to m_antsTimer and m_offset_count to m_antsOffset 2015-08-18 15:46:17 -03:00
David Capello
1cd551554b Fix possible ambiguous condition on Render::renderLayer() 2015-08-18 14:29:17 -03:00
David Capello
137a09039f Remove unused variables 2015-08-18 14:28:50 -03:00
David Capello
4d5983f81b Fix generation of key down she::Events on Mac OS and Linux (fix #755) 2015-08-18 14:28:40 -03:00
David Capello
f34934c06c Add missing <typeinfo> header to compile on clang 2015-08-18 11:02:58 -03:00
David Capello
4dc6da286e Add zoom slider in StatusBar (issue #420) 2015-08-14 19:46:48 -03:00
David Capello
fa53692221 Remove the cel opacity slider from the status bar
It added more noise to the screen for a feature that is uncommonly used.
2015-08-14 15:37:21 -03:00
David Capello
e35f85bff7 Add "Edit > New Sprite from Selection" command 2015-08-14 15:23:56 -03:00
David Capello
383fd3f1ae Fix eyedropper for tiled mode (fix #529) 2015-08-14 14:28:46 -03:00
David Capello
8e47e507fd Fix Editor::screenToEditor() for sprite positions < (0,0) 2015-08-14 14:26:05 -03:00
David Capello
9966b48139 Add support to drag the selection in other editor when the active one is in MovingPixels state 2015-08-14 13:06:26 -03:00
David Capello
ab9d2da762 Fix shortcuts for Edit > Rotate menus 2015-08-14 11:00:19 -03:00
David Capello
56de0fe989 Fix rotation in straight angle (fix #592) 2015-08-14 10:57:40 -03:00
David Capello
a5536359bb Fix loading png files without alpha but with a specific RGB or GRAY transparent color 2015-08-14 10:37:26 -03:00
David Capello
953a626425 Fix brush preview hiding from secondary editors when we change the current frame 2015-08-14 10:15:38 -03:00
David Capello
75a743f141 Separate pivot visibility and location options 2015-08-14 10:09:15 -03:00
David Capello
43606935f9 Fix bug regenerating selection boundaries after Paste
This bug was introduced in e0020d36f2
2015-08-14 09:08:11 -03:00
David Capello
462f1f395e Add support to rotate the selection/moving pixels (fix #161) 2015-08-13 21:47:30 -03:00
David Capello
62c6647710 Fix cmd::FlipMaskedCel to flip irregular regions 2015-08-13 21:38:35 -03:00
David Capello
ec2ef30f20 Add some logging in debug mode for Cmd() members 2015-08-13 21:00:02 -03:00
David Capello
5b05c23722 Add LOG and DLOG macros
In the future, PRINTF() should be replace with LOG()
2015-08-13 20:58:36 -03:00
David Capello
f9069cb83f Use PIxelMovement::updateDocumentMask() to update the mask after flip 2015-08-13 20:51:27 -03:00
David Capello
e0020d36f2 Fix bug undoing/redoing pixel movements with several mask movements
If we call updateDocumentMask() in this point, we'll leave a
sequence of cmds: SetMask(old mask, new mask) -> ClearMask(new mask)
And we need the opposite: ClearMask(old mask) -> SetMask(old mask, new mask)

This bug was introduced in 35229e99a6
2015-08-13 20:45:44 -03:00
David Capello
617284b518 Fix "sprite is locked" message when Ctrl+T is pressed (MaskContentCommand) 2015-08-13 20:12:31 -03:00
David Capello
8c6c1d29df Minor changes in src/app/document_access.h 2015-08-13 17:25:54 -03:00
David Capello
40394d9695 Enable commands when we're in MovingPixelsState
Now ContextFlags enable some flags if it detects that the current editor
is in MovingPixelsState. In this way commands "think" that they are able
to lock the document for write access (finally they will be able, because
MovingPixelsState::onBeforeCommandExecution() unlocks the document
just before the command is executed).

Fix #275, fix #690, fix #750
2015-08-13 17:25:39 -03:00
David Capello
782aa72faf Fix opacity value for custom brushes 2015-08-13 15:41:37 -03:00
David Capello
4984a48918 Remove TODO.md file (close #289) 2015-08-13 13:38:16 -03:00
David Capello
32bf3314e6 Add a new simple/default ink
This ink behaves as alpha compositing but doesn't use the opacity slider
(opacity is used from current color's alpha channel). Also, in case that
we pick the mask color, it behaves as the eraser tool.
2015-08-13 13:26:52 -03:00
David Capello
f4d82ad2c0 Add "Link Cels" command in Timeline popup
From a comment in issue #746
2015-08-13 09:59:44 -03:00
David Capello
8ca323492e Don't show warning icon for Mask color 2015-08-12 19:12:10 -03:00
David Capello
72d6aebbda Show transparent color in indexed transparent layers as the mask color 2015-08-12 19:11:59 -03:00
David Capello
b75b9a6f1b Don't redraw brush preview area in other editors if they aren't in the current frame 2015-08-12 17:32:17 -03:00
David Capello
1b930d4d42 Draw document's extra cel (brush preview) in the current frame only 2015-08-12 17:24:48 -03:00
David Capello
436866c128 Fix ColorSliders preferred size when guiscale() > 1 2015-08-12 17:09:15 -03:00
David Capello
bb8c238423 Move scrollbar size to skin.xml 2015-08-12 16:56:19 -03:00
David Capello
d323b4affc Remove public variable members from ui::Theme class 2015-08-12 16:48:40 -03:00
David Capello
77d8024026 Fix bug with save/load progress bar: cannot be edited now
The ui::Alert slider to show progress is read-only now.
2015-08-12 16:10:20 -03:00
David Capello
a24864b2c8 Fix bug clearing the first image in a new Indexed sprite
The color/index was being searched in the current palette (of the
unrelated current sprite) instead of the sprite default palette.
2015-08-12 15:40:44 -03:00
David Capello
4302d12cb4 Move "New Sprite" preferences from raw get/set_config_*() to pref.xml 2015-08-12 15:35:46 -03:00
David Capello
2eb757995d Catch exception if we cannot change the selection transparent color
We have a memory crash dump where wasn't possible to change the
selection transparent color because the data recovery thread was creating
the sprite backup.
2015-08-12 15:26:49 -03:00
David Capello
847fc58a01 Fix UI problem navigating FileSelector using autocomplete and keyboard
With this fix, when the list of possible completions for a filename
is regenerated, we deselect the previously selected item. So the new
list appears without any item selected by default.
2015-08-12 15:17:53 -03:00
David Capello
c9ed7bf868 Fix brush boundaries glitches in extreme cases
We this commit we don't share saved pixels information between
different BrushPreview instances.

If we pressed E key to swich to the eraser tool, and kept it pressed,
moving the mouse cursor over different editors produced invalid restored
pixels.
2015-08-12 15:07:32 -03:00