diff options
author | John Hurliman | 2009-11-04 16:08:10 -0800 |
---|---|---|
committer | John Hurliman | 2009-11-04 16:08:10 -0800 |
commit | ec2ebf2598028daf4ff2003a53be3ca40ffc8272 (patch) | |
tree | c80cba8f5ddc4f6a95af6339d46fa1c7bd22b24c /OpenSim/Region/ScriptEngine/Shared | |
parent | Remove parallel loading from XEngine, but retain the new design where (diff) | |
download | opensim-SC-ec2ebf2598028daf4ff2003a53be3ca40ffc8272.zip opensim-SC-ec2ebf2598028daf4ff2003a53be3ca40ffc8272.tar.gz opensim-SC-ec2ebf2598028daf4ff2003a53be3ca40ffc8272.tar.bz2 opensim-SC-ec2ebf2598028daf4ff2003a53be3ca40ffc8272.tar.xz |
Removing EntityBase.Rotation
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Shared')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs index 52396b6..f1ceb80 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs | |||
@@ -384,7 +384,14 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
384 | m_host.AddScriptLPS(1); | 384 | m_host.AddScriptLPS(1); |
385 | if (World.Entities.ContainsKey(target)) | 385 | if (World.Entities.ContainsKey(target)) |
386 | { | 386 | { |
387 | World.Entities[target].Rotation = rotation; | 387 | EntityBase entity; |
388 | if (World.Entities.TryGetValue(target, out entity)) | ||
389 | { | ||
390 | if (entity is SceneObjectGroup) | ||
391 | ((SceneObjectGroup)entity).Rotation = rotation; | ||
392 | else if (entity is ScenePresence) | ||
393 | ((ScenePresence)entity).Rotation = rotation; | ||
394 | } | ||
388 | } | 395 | } |
389 | else | 396 | else |
390 | { | 397 | { |