mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-25 10:18:12 +08:00
Fix Layers panel UI not updating on selection change and expand/collapsing (#1847)
Also fixes a panic on empty layer. * Fix layer properties updete on layer change + fix panic on empty layer * Fix Layers panel expand/collapse --------- Co-authored-by: Keavon Chambers <keavon@keavon.com>
This commit is contained in:
co-authored by
Keavon Chambers
parent
fad289804a
commit
ab8748627d
@@ -441,6 +441,9 @@ impl Fsm for SelectToolFsmState {
|
||||
.next()
|
||||
.map(|layer| document.metadata().transform_to_viewport(layer));
|
||||
let transform = transform.unwrap_or(DAffine2::IDENTITY);
|
||||
if transform.matrix2.determinant() == 0. {
|
||||
return self;
|
||||
}
|
||||
let bounds = document
|
||||
.selected_nodes
|
||||
.selected_visible_and_unlocked_layers(document.metadata())
|
||||
|
||||
Reference in New Issue
Block a user