File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed
editor/src/messages/tool/common_functionality Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -27,6 +27,9 @@ impl CompassRose {
2727 . selected_nodes ( )
2828 . selected_visible_and_unlocked_layers ( & document. network_interface )
2929 . filter_map ( |layer| {
30+ if transform. matrix2 . determinant ( ) . abs ( ) <= f64:: EPSILON {
31+ return None ;
32+ }
3033 document
3134 . metadata ( )
3235 . bounding_box_with_transform ( layer, transform. inverse ( ) * document. metadata ( ) . transform_to_viewport ( layer) )
Original file line number Diff line number Diff line change @@ -241,6 +241,9 @@ impl Pivot {
241241 . selected_nodes ( )
242242 . selected_visible_and_unlocked_layers ( & document. network_interface )
243243 . filter_map ( |layer| {
244+ if transform. matrix2 . determinant ( ) . abs ( ) <= f64:: EPSILON {
245+ return None ;
246+ }
244247 document
245248 . metadata ( )
246249 . bounding_box_with_transform ( layer, transform. inverse ( ) * document. metadata ( ) . transform_to_viewport ( layer) )
You can’t perform that action at this time.
0 commit comments