Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Timeline: add support to move/copy ranges (multiple cels/frames/layers)
- Merge Timeline::STATE_MOVING_LAYER/CEL/FRAME to STATE_MOVING_RANGE. - Remove celmove.h/cpp and move_cel/copy_cel functions. Now they are in the Timeline as dropRange/Cels/Frames/Layers member functions. - Add DocumentApi::copyFrame/moveCel/copyCel member functions. - Add timeline_drop_layer_deco and timeline_drop_frame_deco skin parts. - Move code from DuplicateLayerCommand::onExecute() to new member function DocumentApi::duplicateLayer(). - Fix a bug changing Cel's frame number: we weren't updating the Cel position properly inside the LayerImage::m_cels collection. Now we use LayerImage::moveCel() to change the Cel frame number. - Other fixes to DocumentApi: Change bgcolor from int to color_t.
- Loading branch information
Showing
19 changed files
with
717 additions
and
646 deletions.
There are no files selected for viewing
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.