diff options
Diffstat (limited to 'OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs')
-rw-r--r-- | OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs b/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs index 47c4567..e295f87 100644 --- a/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs +++ b/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs | |||
@@ -123,7 +123,15 @@ namespace OpenSim.Region.Environment.Scenes | |||
123 | 123 | ||
124 | public override LLVector3 AbsolutePosition | 124 | public override LLVector3 AbsolutePosition |
125 | { | 125 | { |
126 | get { return m_rootPart.GroupPosition; } | 126 | get |
127 | { | ||
128 | if( m_rootPart == null ) | ||
129 | { | ||
130 | throw new NullReferenceException(string.Format("Object {0} has no root part.", m_uuid)); | ||
131 | } | ||
132 | |||
133 | return m_rootPart.GroupPosition; | ||
134 | } | ||
127 | set | 135 | set |
128 | { | 136 | { |
129 | LLVector3 val = value; | 137 | LLVector3 val = value; |