Commit Graph

3779 Commits

Author SHA1 Message Date
David Capello
73c725827e Add "Duplicate Cels" command (fix #746) 2015-08-19 15:59:30 -03:00
David Capello
3e71647308 Paste image in viewport center if the original location center isn't visible (fix #642) 2015-08-19 14:48:16 -03:00
David Capello
d0cca0c16a We do have to share AppRender between editors
In this way the preview image is visualized in multiple editors for
the same sprite.
2015-08-19 14:25:57 -03:00
David Capello
c2569060f3 Do not share the AppRender instance between editors 2015-08-19 13:05:45 -03:00
David Capello
22adb9d7d3 Do not share Ink instances between different tools::ToolLoop implementations (fix #764) 2015-08-19 12:58:56 -03:00
David Capello
b6744cc1f7 Remove context parameter from create_tool_loop_preview() 2015-08-19 12:54:57 -03:00
David Capello
a08352d4b5 Add minor ASSERT() in Render::renderLayer() to check preview image pixel format 2015-08-19 12:53:15 -03:00
David Capello
a39e3710ce Separate extra cel concept from app::Document into app::ExtraCel class 2015-08-19 10:03:29 -03:00
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