Started work on layers undo/redo, and implemented undo action for moving bookmark list items
This commit is contained in:
parent
974985ffcd
commit
cba5c3abc9
12 changed files with 199 additions and 30 deletions
|
|
@ -41,8 +41,8 @@ void CanvasComponentContainer::register_class(World& w) {
|
|||
});
|
||||
}
|
||||
|
||||
std::shared_ptr<CanvasComponentContainer::CopyData> CanvasComponentContainer::get_data_copy() const {
|
||||
auto toRet = std::make_shared<CopyData>();
|
||||
std::unique_ptr<CanvasComponentContainer::CopyData> CanvasComponentContainer::get_data_copy() const {
|
||||
auto toRet = std::make_unique<CanvasComponentContainer::CopyData>();
|
||||
toRet->coords = coords;
|
||||
toRet->obj = compAllocator->comp->get_data_copy();
|
||||
return toRet;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue