diff options
author | Fox Caminiti <fox@foxcam.net> | 2023-02-07 00:21:06 -0500 |
---|---|---|
committer | Fox Caminiti <fox@foxcam.net> | 2023-02-07 00:21:06 -0500 |
commit | ee654e9217487f6fca12356ec8af82319c309592 (patch) | |
tree | 7b87b83ed9087b73b733555243a66d3d0c93e900 /src/imgui_ui.cpp | |
parent | e2e0e630ca51a4fd80a8186c5795c96693a2815b (diff) |
good changes
Diffstat (limited to 'src/imgui_ui.cpp')
-rw-r--r-- | src/imgui_ui.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/imgui_ui.cpp b/src/imgui_ui.cpp index c24571c..a07854e 100644 --- a/src/imgui_ui.cpp +++ b/src/imgui_ui.cpp @@ -444,11 +444,7 @@ ImGui_ProcessInputs(project_data *File, project_state *State, ui *UI, memory *Me } if (ImGui::IsKeyPressed(ImGuiKey_D)) { if (io.KeyShift && State->Interact_Active == interact_type_none) { - History_Entry_Commit(Memory, "Duplicate layers"); - v2 Offset = V2(State->Interact_Dup_Previous[0], State->Interact_Dup_Previous[1]); - Project_Layer_Duplicate(File, State, Memory, Sorted.CompArray, Sorted.LayerArray, Offset, 0); - State->Interact_Transform = {}; - History_Entry_End(Memory); + State->HotkeyInput = hotkey_duplicatelayer; } else { State->Tool = tool_pen; } |