aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs
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/SceneObjectPart.cs
parentrun NArrange on SOP to stack together the attributes, (diff)
downloadopensim-SC_OLD-3d26e6ede04389252332d9ba25016155ee607411.zip
opensim-SC_OLD-3d26e6ede04389252332d9ba25016155ee607411.tar.gz
opensim-SC_OLD-3d26e6ede04389252332d9ba25016155ee607411.tar.bz2
opensim-SC_OLD-3d26e6ede04389252332d9ba25016155ee607411.tar.xz
move along, nothing to see here. just a couple of lazy variables.
Diffstat (limited to 'OpenSim/Region/Environment/Scenes/SceneObjectPart.cs')
-rw-r--r--OpenSim/Region/Environment/Scenes/SceneObjectPart.cs20
1 files changed, 10 insertions, 10 deletions
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 {