diff options
author | Brian McBee | 2007-09-10 19:35:51 +0000 |
---|---|---|
committer | Brian McBee | 2007-09-10 19:35:51 +0000 |
commit | 1fb47bc4c5ef7409b853efcfb826b6f60805636a (patch) | |
tree | 8cdbf5d1618f58685820807e676500604366da67 /OpenSim/Region | |
parent | weekly setting of eol-native (diff) | |
download | opensim-SC-1fb47bc4c5ef7409b853efcfb826b6f60805636a.zip opensim-SC-1fb47bc4c5ef7409b853efcfb826b6f60805636a.tar.gz opensim-SC-1fb47bc4c5ef7409b853efcfb826b6f60805636a.tar.bz2 opensim-SC-1fb47bc4c5ef7409b853efcfb826b6f60805636a.tar.xz |
Make grass and trees phantom by default. Same behavior as LL grid.
Diffstat (limited to 'OpenSim/Region')
-rw-r--r-- | OpenSim/Region/Environment/Scenes/Scene.cs | 6 |
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()); |