aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs
diff options
context:
space:
mode:
authorUbitUmarov2012-10-07 08:53:55 +0100
committerUbitUmarov2012-10-07 08:53:55 +0100
commit48d8fbc9aedb3247a1dfd25be1b7dfbdd8719790 (patch)
treea127f70a44261c37345d4ce5a0e32aa0800c7f34 /OpenSim/Region/Framework/Scenes/SceneObjectPart.cs
parentrefix so we can compile it, loosing alpha scultps fix on core meshmerizer (diff)
downloadopensim-SC_OLD-48d8fbc9aedb3247a1dfd25be1b7dfbdd8719790.zip
opensim-SC_OLD-48d8fbc9aedb3247a1dfd25be1b7dfbdd8719790.tar.gz
opensim-SC_OLD-48d8fbc9aedb3247a1dfd25be1b7dfbdd8719790.tar.bz2
opensim-SC_OLD-48d8fbc9aedb3247a1dfd25be1b7dfbdd8719790.tar.xz
bug fix + make costs visible for testing
Diffstat (limited to '')
-rw-r--r--OpenSim/Region/Framework/Scenes/SceneObjectPart.cs13
1 files changed, 9 insertions, 4 deletions
diff --git a/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs b/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs
index 633cd3b..66d85c4 100644
--- a/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs
+++ b/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs
@@ -1583,7 +1583,9 @@ namespace OpenSim.Region.Framework.Scenes
1583 1583
1584 float cost = 0.1f; 1584 float cost = 0.1f;
1585 if (PhysActor != null) 1585 if (PhysActor != null)
1586// cost += PhysActor.Cost; 1586 cost = PhysActor.PhysicsCost;
1587 else
1588 cost = 0.1f;
1587 1589
1588 if ((Flags & PrimFlags.Physics) != 0) 1590 if ((Flags & PrimFlags.Physics) != 0)
1589 cost *= (1.0f + 0.01333f * Scale.LengthSquared()); // 0.01333 == 0.04/3 1591 cost *= (1.0f + 0.01333f * Scale.LengthSquared()); // 0.01333 == 0.04/3
@@ -1596,9 +1598,12 @@ namespace OpenSim.Region.Framework.Scenes
1596 { 1598 {
1597 get 1599 get
1598 { 1600 {
1599 1601 float cost;
1600 1602 if (PhysActor != null)
1601 return 0.1f; 1603 cost = PhysActor.StreamCost;
1604 else
1605 cost = 1.0f;
1606 return 1.0f;
1602 } 1607 }
1603 } 1608 }
1604 1609