diff options
author | Adam Frisby | 2009-04-09 10:07:40 +0000 |
---|---|---|
committer | Adam Frisby | 2009-04-09 10:07:40 +0000 |
commit | 1b56fff7c8ca3a3e14e576ecb0137d9d34997205 (patch) | |
tree | 760ceb7dc7918c287293fb7db2b7df12e6085fd9 /OpenSim/Region/OptionalModules/Scripting/Minimodule/SOPObject.cs | |
parent | * Thank you, mpallari for a patch that updates NHibernate inventory base mapp... (diff) | |
download | opensim-SC-1b56fff7c8ca3a3e14e576ecb0137d9d34997205.zip opensim-SC-1b56fff7c8ca3a3e14e576ecb0137d9d34997205.tar.gz opensim-SC-1b56fff7c8ca3a3e14e576ecb0137d9d34997205.tar.bz2 opensim-SC-1b56fff7c8ca3a3e14e576ecb0137d9d34997205.tar.xz |
* Implements retrieving child primitives via World.Objects[id] (MRM)
* Optimizes SceneGraph - fetches on primitives via "GetGroupByPrim" wont search the entire list if the primitive is infact the root. (Core)
* Updates Test MRM.
Diffstat (limited to 'OpenSim/Region/OptionalModules/Scripting/Minimodule/SOPObject.cs')
-rw-r--r-- | OpenSim/Region/OptionalModules/Scripting/Minimodule/SOPObject.cs | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/OpenSim/Region/OptionalModules/Scripting/Minimodule/SOPObject.cs b/OpenSim/Region/OptionalModules/Scripting/Minimodule/SOPObject.cs index 4734fa9..75ec33a 100644 --- a/OpenSim/Region/OptionalModules/Scripting/Minimodule/SOPObject.cs +++ b/OpenSim/Region/OptionalModules/Scripting/Minimodule/SOPObject.cs | |||
@@ -53,10 +53,7 @@ namespace OpenSim.Region.OptionalModules.Scripting.Minimodule | |||
53 | /// <returns></returns> | 53 | /// <returns></returns> |
54 | private SceneObjectPart GetSOP() | 54 | private SceneObjectPart GetSOP() |
55 | { | 55 | { |
56 | if (m_rootScene.Entities.ContainsKey(m_localID)) | 56 | return m_rootScene.GetSceneObjectPart(m_localID); |
57 | return ((SceneObjectGroup) m_rootScene.Entities[m_localID]).RootPart; | ||
58 | |||
59 | return null; | ||
60 | } | 57 | } |
61 | 58 | ||
62 | #region OnTouch | 59 | #region OnTouch |