aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Environment/Scenes/Scene.cs
diff options
context:
space:
mode:
authorBrian McBee2007-09-10 19:35:51 +0000
committerBrian McBee2007-09-10 19:35:51 +0000
commit1fb47bc4c5ef7409b853efcfb826b6f60805636a (patch)
tree8cdbf5d1618f58685820807e676500604366da67 /OpenSim/Region/Environment/Scenes/Scene.cs
parentweekly setting of eol-native (diff)
downloadopensim-SC_OLD-1fb47bc4c5ef7409b853efcfb826b6f60805636a.zip
opensim-SC_OLD-1fb47bc4c5ef7409b853efcfb826b6f60805636a.tar.gz
opensim-SC_OLD-1fb47bc4c5ef7409b853efcfb826b6f60805636a.tar.bz2
opensim-SC_OLD-1fb47bc4c5ef7409b853efcfb826b6f60805636a.tar.xz
Make grass and trees phantom by default. Same behavior as LL grid.
Diffstat (limited to 'OpenSim/Region/Environment/Scenes/Scene.cs')
-rw-r--r--OpenSim/Region/Environment/Scenes/Scene.cs6
1 files changed, 6 insertions, 0 deletions
diff --git a/OpenSim/Region/Environment/Scenes/Scene.cs b/OpenSim/Region/Environment/Scenes/Scene.cs
index 3e81223..5f9cb21 100644
--- a/OpenSim/Region/Environment/Scenes/Scene.cs
+++ b/OpenSim/Region/Environment/Scenes/Scene.cs
@@ -566,6 +566,12 @@ namespace OpenSim.Region.Environment.Scenes
566 SceneObjectGroup sceneOb = new SceneObjectGroup(this, this.m_regionHandle, ownerID, PrimIDAllocate(), pos, shape); 566 SceneObjectGroup sceneOb = new SceneObjectGroup(this, this.m_regionHandle, ownerID, PrimIDAllocate(), pos, shape);
567 AddEntity(sceneOb); 567 AddEntity(sceneOb);
568 SceneObjectPart rootPart = sceneOb.GetChildPart(sceneOb.UUID); 568 SceneObjectPart rootPart = sceneOb.GetChildPart(sceneOb.UUID);
569 // if grass or tree, make phantom
570 if ((rootPart.Shape.PCode==95) || (rootPart.Shape.PCode==255))
571 {
572 rootPart.ObjectFlags += (uint)LLObject.ObjectFlags.Phantom;
573 }
574 // if not phantom, add to physics
569 if ((rootPart.ObjectFlags & (uint)LLObject.ObjectFlags.Phantom) == 0) 575 if ((rootPart.ObjectFlags & (uint)LLObject.ObjectFlags.Phantom) == 0)
570 rootPart.PhysActor = phyScene.AddPrim(new PhysicsVector(pos.X, pos.Y, pos.Z), new PhysicsVector(shape.Scale.X, shape.Scale.Y, shape.Scale.Z), 576 rootPart.PhysActor = phyScene.AddPrim(new PhysicsVector(pos.X, pos.Y, pos.Z), new PhysicsVector(shape.Scale.X, shape.Scale.Y, shape.Scale.Z),
571 new Axiom.Math.Quaternion()); 577 new Axiom.Math.Quaternion());