Skip to content

Commit

Permalink
Avoid sometimes breaking the selected layer upon switching away from …
Browse files Browse the repository at this point in the history
…the Select tool
  • Loading branch information
Keavon committed Nov 3, 2024
1 parent 7d86bf4 commit 8d3da83
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions editor/src/messages/tool/tool_messages/select_tool.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1061,19 +1061,6 @@ impl Fsm for SelectToolFsmState {
false
}
});
if let Some(mut bounding_box_overlays) = tool_data.bounding_box_manager.take() {
let mut selected = Selected::new(
&mut bounding_box_overlays.original_transforms,
&mut bounding_box_overlays.opposite_pivot,
&tool_data.layers_dragging,
responses,
&document.network_interface,
None,
&ToolType::Select,
);

selected.revert_operation();
}

responses.add(OverlaysMessage::Draw);

Expand Down

0 comments on commit 8d3da83

Please sign in to comment.