aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Environment/Scenes
diff options
context:
space:
mode:
authorDr Scofield2008-06-27 19:57:06 +0000
committerDr Scofield2008-06-27 19:57:06 +0000
commit3d26e6ede04389252332d9ba25016155ee607411 (patch)
tree4acc6c6c89458ecab162de1afe3a1918928de348 /OpenSim/Region/Environment/Scenes
parentrun NArrange on SOP to stack together the attributes, (diff)
downloadopensim-SC-3d26e6ede04389252332d9ba25016155ee607411.zip
opensim-SC-3d26e6ede04389252332d9ba25016155ee607411.tar.gz
opensim-SC-3d26e6ede04389252332d9ba25016155ee607411.tar.bz2
opensim-SC-3d26e6ede04389252332d9ba25016155ee607411.tar.xz
move along, nothing to see here. just a couple of lazy variables.
Diffstat (limited to 'OpenSim/Region/Environment/Scenes')
-rw-r--r--OpenSim/Region/Environment/Scenes/InnerScene.cs7
-rw-r--r--OpenSim/Region/Environment/Scenes/Scene.cs3
-rw-r--r--OpenSim/Region/Environment/Scenes/SceneCommunicationService.cs4
-rw-r--r--OpenSim/Region/Environment/Scenes/SceneObjectPart.cs20
4 files changed, 18 insertions, 16 deletions
diff --git a/OpenSim/Region/Environment/Scenes/InnerScene.cs b/OpenSim/Region/Environment/Scenes/InnerScene.cs
index ab0ed6b..fd8e2f8 100644
--- a/OpenSim/Region/Environment/Scenes/InnerScene.cs
+++ b/OpenSim/Region/Environment/Scenes/InnerScene.cs
@@ -1096,7 +1096,7 @@ namespace OpenSim.Region.Environment.Scenes
1096 SceneObjectGroup group = GetGroupByPrim(localID); 1096 SceneObjectGroup group = GetGroupByPrim(localID);
1097 if (group != null) 1097 if (group != null)
1098 { 1098 {
1099 LLVector3 oldPos = group.AbsolutePosition; 1099 // LLVector3 oldPos = group.AbsolutePosition;
1100 if (!m_parentScene.ExternalChecks.ExternalChecksCanObjectEntry(group.UUID,pos) && !group.RootPart.m_IsAttachment) 1100 if (!m_parentScene.ExternalChecks.ExternalChecksCanObjectEntry(group.UUID,pos) && !group.RootPart.m_IsAttachment)
1101 { 1101 {
1102 group.SendGroupTerseUpdate(); 1102 group.SendGroupTerseUpdate();
@@ -1122,7 +1122,7 @@ namespace OpenSim.Region.Environment.Scenes
1122 if (group != null) 1122 if (group != null)
1123 { 1123 {
1124 1124
1125 LLVector3 oldPos = group.AbsolutePosition; 1125 // LLVector3 oldPos = group.AbsolutePosition;
1126 if (group.RootPart.m_IsAttachment) 1126 if (group.RootPart.m_IsAttachment)
1127 { 1127 {
1128 group.UpdateGroupPosition(pos); 1128 group.UpdateGroupPosition(pos);
@@ -1467,7 +1467,8 @@ namespace OpenSim.Region.Environment.Scenes
1467 { 1467 {
1468 //m_log.DebugFormat("[SCENE]: Duplication of object {0} at offset {1} requested by agent {2}", originalPrim, offset, AgentID); 1468 //m_log.DebugFormat("[SCENE]: Duplication of object {0} at offset {1} requested by agent {2}", originalPrim, offset, AgentID);
1469 1469
1470 SceneObjectGroup dupe = DuplicateObject(originalPrim, offset, flags, AgentID, GroupID, Quaternion.Zero); 1470 // SceneObjectGroup dupe = DuplicateObject(originalPrim, offset, flags, AgentID, GroupID, Quaternion.Zero);
1471 DuplicateObject(originalPrim, offset, flags, AgentID, GroupID, Quaternion.Zero);
1471 } 1472 }
1472 /// <summary> 1473 /// <summary>
1473 /// Duplicate the given object. 1474 /// Duplicate the given object.
diff --git a/OpenSim/Region/Environment/Scenes/Scene.cs b/OpenSim/Region/Environment/Scenes/Scene.cs
index a5805af..3879b57 100644
--- a/OpenSim/Region/Environment/Scenes/Scene.cs
+++ b/OpenSim/Region/Environment/Scenes/Scene.cs
@@ -2098,7 +2098,8 @@ namespace OpenSim.Region.Environment.Scenes
2098 { 2098 {
2099 LLQuaternion worldRot = target2.GetWorldRotation(); 2099 LLQuaternion worldRot = target2.GetWorldRotation();
2100 2100
2101 SceneObjectGroup obj = m_innerScene.DuplicateObject(localID, pos, target.GetEffectiveObjectFlags(), AgentID, GroupID, new Quaternion(worldRot.W,worldRot.X,worldRot.Y,worldRot.Z)); 2101 // SceneObjectGroup obj = m_innerScene.DuplicateObject(localID, pos, target.GetEffectiveObjectFlags(), AgentID, GroupID, new Quaternion(worldRot.W,worldRot.X,worldRot.Y,worldRot.Z));
2102 m_innerScene.DuplicateObject(localID, pos, target.GetEffectiveObjectFlags(), AgentID, GroupID, new Quaternion(worldRot.W,worldRot.X,worldRot.Y,worldRot.Z));
2102 //obj.Rotation = new Quaternion(worldRot.W, worldRot.X, worldRot.Y, worldRot.Z); 2103 //obj.Rotation = new Quaternion(worldRot.W, worldRot.X, worldRot.Y, worldRot.Z);
2103 //obj.UpdateGroupRotation(worldRot); 2104 //obj.UpdateGroupRotation(worldRot);
2104 } 2105 }
diff --git a/OpenSim/Region/Environment/Scenes/SceneCommunicationService.cs b/OpenSim/Region/Environment/Scenes/SceneCommunicationService.cs
index 6e14577..cdd138b 100644
--- a/OpenSim/Region/Environment/Scenes/SceneCommunicationService.cs
+++ b/OpenSim/Region/Environment/Scenes/SceneCommunicationService.cs
@@ -266,8 +266,8 @@ namespace OpenSim.Region.Environment.Scenes
266 266
267 public void RequestNeighbors(RegionInfo region) 267 public void RequestNeighbors(RegionInfo region)
268 { 268 {
269 List<SimpleRegionInfo> neighbours = 269 // List<SimpleRegionInfo> neighbours =
270 m_commsProvider.GridService.RequestNeighbours(m_regionInfo.RegionLocX, m_regionInfo.RegionLocY); 270 m_commsProvider.GridService.RequestNeighbours(m_regionInfo.RegionLocX, m_regionInfo.RegionLocY);
271 //IPEndPoint blah = new IPEndPoint(); 271 //IPEndPoint blah = new IPEndPoint();
272 272
273 //blah.Address = region.RemotingAddress; 273 //blah.Address = region.RemotingAddress;
diff --git a/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs b/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs
index d7aa962..b610477 100644
--- a/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs
+++ b/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs
@@ -823,7 +823,7 @@ namespace OpenSim.Region.Environment.Scenes
823 823
824 public void AddFlag(LLObject.ObjectFlags flag) 824 public void AddFlag(LLObject.ObjectFlags flag)
825 { 825 {
826 LLObject.ObjectFlags prevflag = Flags; 826 // LLObject.ObjectFlags prevflag = Flags;
827 //uint objflags = Flags; 827 //uint objflags = Flags;
828 if ((ObjectFlags & (uint) flag) == 0) 828 if ((ObjectFlags & (uint) flag) == 0)
829 { 829 {
@@ -1678,7 +1678,7 @@ namespace OpenSim.Region.Environment.Scenes
1678 1678
1679 public void PreloadSound(string sound) 1679 public void PreloadSound(string sound)
1680 { 1680 {
1681 LLUUID ownerID = OwnerID; 1681 // LLUUID ownerID = OwnerID;
1682 LLUUID objectID = UUID; 1682 LLUUID objectID = UUID;
1683 LLUUID soundID = LLUUID.Zero; 1683 LLUUID soundID = LLUUID.Zero;
1684 1684
@@ -1708,7 +1708,7 @@ namespace OpenSim.Region.Environment.Scenes
1708 1708
1709 public void RemFlag(LLObject.ObjectFlags flag) 1709 public void RemFlag(LLObject.ObjectFlags flag)
1710 { 1710 {
1711 LLObject.ObjectFlags prevflag = Flags; 1711 // LLObject.ObjectFlags prevflag = Flags;
1712 if ((ObjectFlags & (uint) flag) != 0) 1712 if ((ObjectFlags & (uint) flag) != 0)
1713 { 1713 {
1714 //Console.WriteLine("Removing flag: " + ((LLObject.ObjectFlags)flag).ToString()); 1714 //Console.WriteLine("Removing flag: " + ((LLObject.ObjectFlags)flag).ToString());
@@ -2153,12 +2153,12 @@ namespace OpenSim.Region.Environment.Scenes
2153 2153
2154 public void SetScriptEvents(LLUUID scriptid, int events) 2154 public void SetScriptEvents(LLUUID scriptid, int events)
2155 { 2155 {
2156 scriptEvents oldparts; 2156 // scriptEvents oldparts;
2157 lock (m_scriptEvents) 2157 lock (m_scriptEvents)
2158 { 2158 {
2159 if (m_scriptEvents.ContainsKey(scriptid)) 2159 if (m_scriptEvents.ContainsKey(scriptid))
2160 { 2160 {
2161 oldparts = m_scriptEvents[scriptid]; 2161 // oldparts = m_scriptEvents[scriptid];
2162 2162
2163 // remove values from aggregated script events 2163 // remove values from aggregated script events
2164 m_scriptEvents[scriptid] = (scriptEvents) events; 2164 m_scriptEvents[scriptid] = (scriptEvents) events;
@@ -2259,8 +2259,8 @@ namespace OpenSim.Region.Environment.Scenes
2259 Vector3 vAbsolutePosition = new Vector3(AbsolutePosition.X, AbsolutePosition.Y, AbsolutePosition.Z); 2259 Vector3 vAbsolutePosition = new Vector3(AbsolutePosition.X, AbsolutePosition.Y, AbsolutePosition.Z);
2260 2260
2261 Vector3 vScale = new Vector3(Scale.X, Scale.Y, Scale.Z); 2261 Vector3 vScale = new Vector3(Scale.X, Scale.Y, Scale.Z);
2262 Quaternion qRotation = 2262 // Quaternion qRotation =
2263 new Quaternion(RotationOffset.W, RotationOffset.X, RotationOffset.Y, RotationOffset.Z); 2263 // new Quaternion(RotationOffset.W, RotationOffset.X, RotationOffset.Y, RotationOffset.Z);
2264 2264
2265 2265
2266 //Quaternion worldRotation = (qRotation*parentrot); 2266 //Quaternion worldRotation = (qRotation*parentrot);
@@ -2366,7 +2366,7 @@ namespace OpenSim.Region.Environment.Scenes
2366 // TODO: Change to take shape into account 2366 // TODO: Change to take shape into account
2367 Vector3[] vertexes = new Vector3[8]; 2367 Vector3[] vertexes = new Vector3[8];
2368 2368
2369 float[] distance = new float[6]; 2369 // float[] distance = new float[6];
2370 Vector3[] FaceA = new Vector3[6]; // vertex A for Facei 2370 Vector3[] FaceA = new Vector3[6]; // vertex A for Facei
2371 Vector3[] FaceB = new Vector3[6]; // vertex B for Facei 2371 Vector3[] FaceB = new Vector3[6]; // vertex B for Facei
2372 Vector3[] FaceC = new Vector3[6]; // vertex C for Facei 2372 Vector3[] FaceC = new Vector3[6]; // vertex C for Facei
@@ -2830,7 +2830,7 @@ namespace OpenSim.Region.Environment.Scenes
2830 bool usePhysics = false; 2830 bool usePhysics = false;
2831 bool IsTemporary = false; 2831 bool IsTemporary = false;
2832 bool IsPhantom = false; 2832 bool IsPhantom = false;
2833 bool castsShadows = false; 2833 // bool castsShadows = false;
2834 bool wasUsingPhysics = ((ObjectFlags & (uint) LLObject.ObjectFlags.Physics) != 0); 2834 bool wasUsingPhysics = ((ObjectFlags & (uint) LLObject.ObjectFlags.Physics) != 0);
2835 //bool IsLocked = false; 2835 //bool IsLocked = false;
2836 int i = 0; 2836 int i = 0;
@@ -2843,7 +2843,7 @@ namespace OpenSim.Region.Environment.Scenes
2843 //System.Console.WriteLine("U" + packet.ToBytes().Length.ToString()); 2843 //System.Console.WriteLine("U" + packet.ToBytes().Length.ToString());
2844 IsTemporary = (data[i++] != 0) ? true : false; 2844 IsTemporary = (data[i++] != 0) ? true : false;
2845 IsPhantom = (data[i++] != 0) ? true : false; 2845 IsPhantom = (data[i++] != 0) ? true : false;
2846 castsShadows = (data[i++] != 0) ? true : false; 2846 // castsShadows = (data[i++] != 0) ? true : false;
2847 } 2847 }
2848 catch (Exception) 2848 catch (Exception)
2849 { 2849 {