Fix Document > Clear Artboards so it doesn't also clear everything else (#2177)

* Clear Artboards, Closes #2015

* Memory optmization

* - Fix transactions
- Fix node positions
- Optimize nodes' deletion

* no message

* Fix layers shift to wrong positions

* fix bugs

* Code review

---------

Co-authored-by: Keavon Chambers <keavon@keavon.com>
This commit is contained in:
Mohamed Osama 2025-01-30 11:29:24 +02:00 committed by GitHub
parent a0f8f89e71
commit 618190d6e4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 104 additions and 10 deletions

View file

@ -552,6 +552,7 @@ impl EditorHandle {
let message = NodeGraphMessage::SetDisplayName {
node_id: layer.to_node(),
alias: name,
skip_adding_history_step: false,
};
self.dispatch(message);
}