Skip to content

Commit

Permalink
Fix invalid clone operation introduced in 33c621a (#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
vwout committed Feb 19, 2023
1 parent 6af4433 commit f815432
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions obs-visca-control.lua
Expand Up @@ -507,8 +507,11 @@ local function cb_plugin_hotkey(pressed, hotkey_data)
end
end

local function do_cam_action_start(camera_id, camera_action, action_args)
action_args = {unpack(action_args or {})}
local function do_cam_action_start(camera_id, camera_action, action_args_in)
action_args = {}
for k,v in pairs(action_args_in) do
action_args[k] = v
end

-- Force close connection before sending On-command to prevent usage of a dead connection
if camera_action == camera_actions.Camera_On then
Expand Down

0 comments on commit f815432

Please sign in to comment.