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 cb9a37b638
commit cc66ab06b0
9 changed files with 18 additions and 7 deletions
+1 -1
View File
@@ -246,7 +246,7 @@ impl Fsm for TextToolFsmState {
else if state == TextToolFsmState::Ready {
let transform = DAffine2::from_translation(input.mouse.position).to_cols_array();
let font_size = tool_options.font_size;
data.path = vec![generate_uuid()];
data.path = document.get_path_for_new_layer();
responses.push_back(
Operation::AddText {