From 2af5332e46b3917d6dce211e576a92d04c3eda8b Mon Sep 17 00:00:00 2001 From: "Brad Payne (Vir Linden)" Date: Fri, 30 Jun 2017 21:59:39 +0100 Subject: Added cycle_object_animations.lsl. Also change to test.cpp to see if it affects a g++ internal compiler error. --- scripts/testing/lsl/cycle_object_animations.lsl | 53 +++++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 scripts/testing/lsl/cycle_object_animations.lsl (limited to 'scripts/testing/lsl') diff --git a/scripts/testing/lsl/cycle_object_animations.lsl b/scripts/testing/lsl/cycle_object_animations.lsl new file mode 100644 index 0000000000..95fa99a191 --- /dev/null +++ b/scripts/testing/lsl/cycle_object_animations.lsl @@ -0,0 +1,53 @@ +cycle_animations() +{ + list AnimationList; + integer count = llGetInventoryNumber(INVENTORY_ANIMATION); + string ItemName; + string NowPlaying; + while (count--) + { + ItemName = llGetInventoryName(INVENTORY_ANIMATION, count); + if (NowPlaying != "") + { + llSay(0, "Stopping " + NowPlaying); + llStopObjectAnimation(NowPlaying); + } + llSay(0, "Starting " + ItemName); + llStartObjectAnimation(ItemName); + NowPlaying = ItemName; + llSleep(10); + } + if (NowPlaying != "") + { + llSay(0, "Stopping " + NowPlaying); + llStopObjectAnimation(NowPlaying); + llSleep(10); + } +} + +default +{ + state_entry() + { + llSay(0, "Animated Object here"); + } + + touch_start(integer total_number) + { + llSay(0, "Touch started."); + while (1) + { + cycle_animations(); + } + + } + + touch_end(integer total_number) + { + llSay(0, "Touch ended."); + } +} + +// Local Variables: +// shadow-file-name: "$SW_HOME/axon/scripts/testing/lsl/cycle_object_animations.lsl" +// End: -- cgit v1.3 From f55667397e75991348fa25b6ad581a36de99acf0 Mon Sep 17 00:00:00 2001 From: "Brad Payne (Vir Linden)" Date: Thu, 6 Jul 2017 01:25:10 +0100 Subject: SL-722 - handle per-object animation requests, combine for control avatar animation state. --- indra/newview/app_settings/logcontrol.xml | 1 + indra/newview/llcontrolavatar.cpp | 64 +++++++++++++++++++++++++ indra/newview/llcontrolavatar.h | 3 ++ indra/newview/llviewermessage.cpp | 13 ++--- indra/newview/llvoavatar.cpp | 1 + indra/newview/llvovolume.h | 5 ++ scripts/testing/lsl/cycle_object_animations.lsl | 6 +-- 7 files changed, 82 insertions(+), 11 deletions(-) (limited to 'scripts/testing/lsl') diff --git a/indra/newview/app_settings/logcontrol.xml b/indra/newview/app_settings/logcontrol.xml index ecd7c4bc36..ddd07dba80 100644 --- a/indra/newview/app_settings/logcontrol.xml +++ b/indra/newview/app_settings/logcontrol.xml @@ -50,6 +50,7 @@ tags + AXON