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
@@ -151,7 +151,7 @@ impl Fsm for ShapeToolFsmState {
(Ready, DragStart) => {
shape_data.start(responses, input.viewport_bounds.size(), document, input.mouse.position);
responses.push_back(DocumentMessage::StartTransaction.into());
shape_data.path = Some(vec![generate_uuid()]);
shape_data.path = Some(document.get_path_for_new_layer());
responses.push_back(DocumentMessage::DeselectAllLayers.into());
data.sides = tool_options.vertices;