aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine/Shared
diff options
context:
space:
mode:
authorJustin Clark-Casey (justincc)2013-01-18 22:57:09 +0000
committerJustin Clark-Casey (justincc)2013-01-25 23:54:53 +0000
commitaf5a3f2d7392ce6f86ef210c401956ca92cdb8e2 (patch)
tree973e46d4dd45814ac7737617b9bc94e5e1aece7f /OpenSim/Region/ScriptEngine/Shared
parentCheck the existing ScenePresence.ParentPart to make sure we're not trying to ... (diff)
downloadopensim-SC-af5a3f2d7392ce6f86ef210c401956ca92cdb8e2.zip
opensim-SC-af5a3f2d7392ce6f86ef210c401956ca92cdb8e2.tar.gz
opensim-SC-af5a3f2d7392ce6f86ef210c401956ca92cdb8e2.tar.bz2
opensim-SC-af5a3f2d7392ce6f86ef210c401956ca92cdb8e2.tar.xz
Restore previous client AO behaviour by not allowing them to remove the default animation but continue to allow scripts to do so.
This keeps the fix from http://opensimulator.org/mantis/view.php?id=6327 and fixes the behaviour regression in http://opensimulator.org/mantis/view.php?id=6483 Animations may still exhibit different behaviour if both scripts and clients are adjusting animations. A change in the behaviour of client AO to not remove all animations may be a better long term approach.
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Shared')
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs2
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs2
2 files changed, 2 insertions, 2 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
index 2bdf38b..2493a15 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
@@ -3341,7 +3341,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
3341 if (animID == UUID.Zero) 3341 if (animID == UUID.Zero)
3342 presence.Animator.RemoveAnimation(anim); 3342 presence.Animator.RemoveAnimation(anim);
3343 else 3343 else
3344 presence.Animator.RemoveAnimation(animID); 3344 presence.Animator.RemoveAnimation(animID, true);
3345 } 3345 }
3346 } 3346 }
3347 } 3347 }
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs
index 828288d..dcc85c4 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs
@@ -974,7 +974,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
974 if (animID == UUID.Zero) 974 if (animID == UUID.Zero)
975 target.Animator.RemoveAnimation(animation); 975 target.Animator.RemoveAnimation(animation);
976 else 976 else
977 target.Animator.RemoveAnimation(animID); 977 target.Animator.RemoveAnimation(animID, true);
978 } 978 }
979 } 979 }
980 } 980 }