summaryrefslogtreecommitdiff
path: root/src/imgui_ui.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/imgui_ui.cpp')
-rw-r--r--src/imgui_ui.cpp6
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;
}