summaryrefslogtreecommitdiff
path: root/indra
diff options
context:
space:
mode:
authorMnikolenko Productengine <mnikolenko@productengine.com>2024-07-25 18:29:06 +0300
committerMnikolenko Productengine <mnikolenko@productengine.com>2024-07-25 18:29:06 +0300
commit4edcebdb31b7d49faf94b60a66c9921e90e23899 (patch)
treedb409237d5965c58af4cd4916e67b2c4eb1c0a27 /indra
parentdecc2d3aa5ba8dc583dae5396a5ae8ca738412dd (diff)
Script clean up
Diffstat (limited to 'indra')
-rw-r--r--indra/newview/scripts/lua/test_camera_control.lua17
1 files changed, 7 insertions, 10 deletions
diff --git a/indra/newview/scripts/lua/test_camera_control.lua b/indra/newview/scripts/lua/test_camera_control.lua
index db76201932..e7ad69b473 100644
--- a/indra/newview/scripts/lua/test_camera_control.lua
+++ b/indra/newview/scripts/lua/test_camera_control.lua
@@ -1,8 +1,6 @@
local Floater = require 'Floater'
local LLAgent = require 'LLAgent'
-local leap = require 'leap'
local startup = require 'startup'
-local inspect = require 'inspect'
local flt = Floater('luafloater_camera_control.xml')
@@ -16,17 +14,16 @@ end
function flt:commit_update_btn(event_data)
lock_focus = getValue('lock_focus_ctrl')
- lock_camera = self:request({action="get_value", ctrl_name='lock_camera_ctrl'}).value
+ lock_camera = getValue('lock_camera_ctrl')
+ local camera_pos = {getValue('cam_x'), getValue('cam_y'), getValue('cam_z')}
+ local focus_pos = {getValue('focus_x'), getValue('focus_y'), getValue('focus_z')}
- local camera_pos = {getValue('cam_x'),getValue('cam_y'),getValue('cam_z')}
- local focus_pos = {getValue('focus_x'),getValue('focus_y'),getValue('focus_z')}
-
-
- LLAgent.setCamera{camera_pos=camera_pos,focus_pos=focus_pos,
- focus_locked = lock_focus,camera_locked = lock_camera}
+ LLAgent.setCamera{camera_pos=camera_pos, focus_pos=focus_pos,
+ focus_locked=lock_focus, camera_locked=lock_camera}
self:post({action="add_text", ctrl_name="events_editor",
- value = {'Updating FollowCam params', 'camera_pos:', camera_pos, 'focus_pos:', focus_pos, 'lock_focus:', lock_focus, 'lock_camera:', lock_camera}})
+ value = {'Updating FollowCam params', 'camera_pos:', camera_pos, 'focus_pos:', focus_pos,
+ 'lock_focus:', lock_focus, 'lock_camera:', lock_camera}})
end
function flt:commit_agent_cam_btn(event_data)