Place new layers in tree based on layer selection (#526)

* place new layers based on layer selection
This commit is contained in:
Wuelle
2022-02-09 19:54:38 +01:00
committed by Keavon Chambers
parent 5534d0a44c
commit d9fbcd0092
9 changed files with 18 additions and 7 deletions
+1 -1
View File
@@ -148,7 +148,7 @@ impl Fsm for FreehandToolFsmState {
(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());
let pos = transform.inverse().transform_point2(input.mouse.position);