Skip to content

Commit

Permalink
fix(gizmo): add release function to gizmo binds
Browse files Browse the repository at this point in the history
  • Loading branch information
Demigod916 committed Jul 4, 2024
1 parent 95128a1 commit 6024386
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions client/gizmo.lua
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,9 @@ lib.addKeybind({
currentMode = 'Translate'
ExecuteCommand('+gizmoTranslation')
end,
onReleased = function (self)
ExecuteCommand('-gizmoTranslation')
end
})

lib.addKeybind({
Expand All @@ -180,6 +183,9 @@ lib.addKeybind({
currentMode = 'Rotate'
ExecuteCommand('+gizmoRotation')
end,
onReleased = function (self)
ExecuteCommand('-gizmoRotation')
end
})

lib.addKeybind({
Expand All @@ -191,6 +197,9 @@ lib.addKeybind({
isRelative = not isRelative
ExecuteCommand('+gizmoLocal')
end,
onReleased = function (self)
ExecuteCommand('-gizmoLocal')
end
})

lib.addKeybind({
Expand Down Expand Up @@ -223,5 +232,8 @@ if enableScale then
currentMode = 'Scale'
ExecuteCommand('+gizmoScale')
end,
onReleased = function (self)
ExecuteCommand('-gizmoScale')
end
})
end

0 comments on commit 6024386

Please sign in to comment.