mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-29 16:08:12 +08:00
Place new layers in tree based on layer selection (#526)
* place new layers based on layer selection
This commit is contained in:
@@ -153,7 +153,7 @@ impl Fsm for PenToolFsmState {
|
||||
(Ready, DragStart) => {
|
||||
responses.push_back(DocumentMessage::StartTransaction.into());
|
||||
responses.push_back(DocumentMessage::DeselectAllLayers.into());
|
||||
data.path = Some(vec![generate_uuid()]);
|
||||
data.path = Some(document.get_path_for_new_layer());
|
||||
|
||||
data.snap_handler.start_snap(document, document.visible_layers(), true, true);
|
||||
let snapped_position = data.snap_handler.snap_position(responses, input.viewport_bounds.size(), document, input.mouse.position);
|
||||
|
||||
Reference in New Issue
Block a user