diff options
Diffstat (limited to 'OpenSim/Region/Environment/Scenes/Scene.cs')
-rw-r--r-- | OpenSim/Region/Environment/Scenes/Scene.cs | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/OpenSim/Region/Environment/Scenes/Scene.cs b/OpenSim/Region/Environment/Scenes/Scene.cs index 8ee5856..4aa3c49 100644 --- a/OpenSim/Region/Environment/Scenes/Scene.cs +++ b/OpenSim/Region/Environment/Scenes/Scene.cs | |||
@@ -1023,5 +1023,23 @@ namespace OpenSim.Region.Environment.Scenes | |||
1023 | ScriptEngine.InitializeEngine(this); | 1023 | ScriptEngine.InitializeEngine(this); |
1024 | } | 1024 | } |
1025 | #endregion | 1025 | #endregion |
1026 | |||
1027 | public LLUUID ConvertLocalIDToFullID(uint localID) | ||
1028 | { | ||
1029 | bool hasPrim = false; | ||
1030 | foreach (EntityBase ent in Entities.Values) | ||
1031 | { | ||
1032 | if (ent is SceneObjectGroup) | ||
1033 | { | ||
1034 | hasPrim = ((SceneObjectGroup)ent).HasChildPrim(localID); | ||
1035 | if (hasPrim != false) | ||
1036 | { | ||
1037 | return ((SceneObjectGroup)ent).GetPartsFullID(localID); | ||
1038 | } | ||
1039 | } | ||
1040 | } | ||
1041 | |||
1042 | return null; | ||
1043 | } | ||
1026 | } | 1044 | } |
1027 | } | 1045 | } |