aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs')
-rw-r--r--OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs12
1 files changed, 12 insertions, 0 deletions
diff --git a/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs b/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs
index 5d39790..9ed5990 100644
--- a/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs
+++ b/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs
@@ -2526,5 +2526,17 @@ namespace OpenSim.Region.Environment.Scenes
2526 } 2526 }
2527 } 2527 }
2528 } 2528 }
2529 public float GetMass()
2530 {
2531 float retmass = 0f;
2532 lock (m_parts)
2533 {
2534 foreach (SceneObjectPart part in m_parts.Values)
2535 {
2536 retmass += part.GetMass();
2537 }
2538 }
2539 return retmass;
2540 }
2529 } 2541 }
2530} 2542}