aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region
diff options
context:
space:
mode:
authorJeff Ames2008-06-10 08:35:46 +0000
committerJeff Ames2008-06-10 08:35:46 +0000
commit5910a49da6e16d6e3718fffad73c8a24efcec80d (patch)
tree5f5852f643a77e72b45ad49af0538bdf0838b760 /OpenSim/Region
parent* This completes ObjectDuplicateOnRay. (diff)
downloadopensim-SC_OLD-5910a49da6e16d6e3718fffad73c8a24efcec80d.zip
opensim-SC_OLD-5910a49da6e16d6e3718fffad73c8a24efcec80d.tar.gz
opensim-SC_OLD-5910a49da6e16d6e3718fffad73c8a24efcec80d.tar.bz2
opensim-SC_OLD-5910a49da6e16d6e3718fffad73c8a24efcec80d.tar.xz
Update svn properties. Formatting cleanup.
Diffstat (limited to 'OpenSim/Region')
-rw-r--r--OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs8
-rw-r--r--OpenSim/Region/Environment/Modules/World/Archiver/AssetsArchiver.cs13
-rw-r--r--OpenSim/Region/Environment/Modules/World/Archiver/AssetsDearchiver.cs12
-rw-r--r--OpenSim/Region/Environment/Scenes/SceneObjectPart.cs44
-rw-r--r--OpenSim/Region/Physics/Manager/PhysicsPluginManager.cs20
-rw-r--r--OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/EventManager.cs4
6 files changed, 39 insertions, 62 deletions
diff --git a/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs b/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs
index b2291bc..6839896 100644
--- a/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs
+++ b/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs
@@ -738,10 +738,10 @@ namespace OpenSim.Region.ClientStack.LindenUDP
738 StatsManager.SimExtraStats.AddAbnormalClientThreadTermination(); 738 StatsManager.SimExtraStats.AddAbnormalClientThreadTermination();
739 739
740 // Don't let a failure in an individual client thread crash the whole sim. 740 // Don't let a failure in an individual client thread crash the whole sim.
741 m_log.ErrorFormat("[CLIENT]: Client thread for {0} {1} crashed. Logging them out. Exception {2}", Name, AgentId, e); 741 m_log.ErrorFormat("[CLIENT]: Client thread for {0} {1} crashed. Logging them out. Exception {2}", Name, AgentId, e);
742 742
743 try 743 try
744 { 744 {
745 // Make an attempt to alert the user that their session has crashed 745 // Make an attempt to alert the user that their session has crashed
746 AgentAlertMessagePacket packet 746 AgentAlertMessagePacket packet
747 = BuildAgentAlertPacket( 747 = BuildAgentAlertPacket(
@@ -758,10 +758,10 @@ namespace OpenSim.Region.ClientStack.LindenUDP
758 catch (Exception e2) 758 catch (Exception e2)
759 { 759 {
760 if (e2 is ThreadAbortException) 760 if (e2 is ThreadAbortException)
761 throw e2; 761 throw e2;
762 762
763 m_log.ErrorFormat("[CLIENT]: Further exception thrown on forced session logout. {0}", e2); 763 m_log.ErrorFormat("[CLIENT]: Further exception thrown on forced session logout. {0}", e2);
764 } 764 }
765 } 765 }
766 } 766 }
767 767
diff --git a/OpenSim/Region/Environment/Modules/World/Archiver/AssetsArchiver.cs b/OpenSim/Region/Environment/Modules/World/Archiver/AssetsArchiver.cs
index 2a041dd..4f4a3c3 100644
--- a/OpenSim/Region/Environment/Modules/World/Archiver/AssetsArchiver.cs
+++ b/OpenSim/Region/Environment/Modules/World/Archiver/AssetsArchiver.cs
@@ -1,4 +1,4 @@
1/* 1/*
2 * Copyright (c) Contributors, http://opensimulator.org/ 2 * Copyright (c) Contributors, http://opensimulator.org/
3 * See CONTRIBUTORS.TXT for a full list of copyright holders. 3 * See CONTRIBUTORS.TXT for a full list of copyright holders.
4 * 4 *
@@ -40,7 +40,7 @@ namespace OpenSim.Region.Environment.Modules.World.Archiver
40 /// </summary> 40 /// </summary>
41 public class AssetsArchiver 41 public class AssetsArchiver
42 { 42 {
43 private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); 43 private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
44 44
45 /// <summary> 45 /// <summary>
46 /// Archive assets 46 /// Archive assets
@@ -99,15 +99,14 @@ namespace OpenSim.Region.Environment.Modules.World.Archiver
99 xtw.WriteElementString("inventory-type", asset.InvType.ToString()); 99 xtw.WriteElementString("inventory-type", asset.InvType.ToString());
100 100
101 xtw.WriteEndElement(); 101 xtw.WriteEndElement();
102 } 102 }
103
104 } 103 }
105 104
106 xtw.WriteEndElement(); 105 xtw.WriteEndElement();
107 106
108 xtw.WriteEndDocument(); 107 xtw.WriteEndDocument();
109 108
110 archive.AddFile("assets.xml", sw.ToString()); 109 archive.AddFile("assets.xml", sw.ToString());
111 } 110 }
112 111
113 /// <summary> 112 /// <summary>
@@ -118,7 +117,7 @@ namespace OpenSim.Region.Environment.Modules.World.Archiver
118 { 117 {
119 // It appears that gtar, at least, doesn't need the intermediate directory entries in the tar 118 // It appears that gtar, at least, doesn't need the intermediate directory entries in the tar
120 //archive.AddDir("assets"); 119 //archive.AddDir("assets");
121 120
122 foreach (LLUUID uuid in m_assets.Keys) 121 foreach (LLUUID uuid in m_assets.Keys)
123 { 122 {
124 AssetBase asset = m_assets[uuid]; 123 AssetBase asset = m_assets[uuid];
@@ -140,7 +139,7 @@ namespace OpenSim.Region.Environment.Modules.World.Archiver
140 { 139 {
141 m_log.DebugFormat("[ARCHIVER]: Could not find asset {0} to archive", uuid); 140 m_log.DebugFormat("[ARCHIVER]: Could not find asset {0} to archive", uuid);
142 } 141 }
143 } 142 }
144 } 143 }
145 } 144 }
146} 145}
diff --git a/OpenSim/Region/Environment/Modules/World/Archiver/AssetsDearchiver.cs b/OpenSim/Region/Environment/Modules/World/Archiver/AssetsDearchiver.cs
index 15a92e5..98364d3 100644
--- a/OpenSim/Region/Environment/Modules/World/Archiver/AssetsDearchiver.cs
+++ b/OpenSim/Region/Environment/Modules/World/Archiver/AssetsDearchiver.cs
@@ -39,7 +39,7 @@ namespace OpenSim.Region.Environment.Modules.World.Archiver
39{ 39{
40 /// <summary> 40 /// <summary>
41 /// Dearchives assets 41 /// Dearchives assets
42 /// </summary> 42 /// </summary>
43 public class AssetsDearchiver 43 public class AssetsDearchiver
44 { 44 {
45 private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); 45 private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
@@ -61,7 +61,7 @@ namespace OpenSim.Region.Environment.Modules.World.Archiver
61 /// </summary> 61 /// </summary>
62 protected AssetCache m_cache; 62 protected AssetCache m_cache;
63 63
64 public AssetsDearchiver(AssetCache cache) 64 public AssetsDearchiver(AssetCache cache)
65 { 65 {
66 m_cache = cache; 66 m_cache = cache;
67 } 67 }
@@ -82,7 +82,7 @@ namespace OpenSim.Region.Environment.Modules.World.Archiver
82 ResolveAssetData(assetFilename, data); 82 ResolveAssetData(assetFilename, data);
83 } 83 }
84 } 84 }
85 85
86 /// <summary> 86 /// <summary>
87 /// Add asset metadata xml 87 /// Add asset metadata xml
88 /// </summary> 88 /// </summary>
@@ -92,7 +92,7 @@ namespace OpenSim.Region.Environment.Modules.World.Archiver
92 m_metadata = new Dictionary<string, AssetMetadata>(); 92 m_metadata = new Dictionary<string, AssetMetadata>();
93 93
94 StringReader sr = new StringReader(xml); 94 StringReader sr = new StringReader(xml);
95 XmlTextReader reader = new XmlTextReader(sr); 95 XmlTextReader reader = new XmlTextReader(sr);
96 96
97 reader.ReadStartElement("assets"); 97 reader.ReadStartElement("assets");
98 reader.Read(); 98 reader.Read();
@@ -109,7 +109,7 @@ namespace OpenSim.Region.Environment.Modules.World.Archiver
109 metadata.Name = reader.ReadElementString("name"); 109 metadata.Name = reader.ReadElementString("name");
110 metadata.Description = reader.ReadElementString("description"); 110 metadata.Description = reader.ReadElementString("description");
111 metadata.AssetType = Convert.ToSByte(reader.ReadElementString("asset-type")); 111 metadata.AssetType = Convert.ToSByte(reader.ReadElementString("asset-type"));
112 metadata.AssetType = Convert.ToSByte(reader.ReadElementString("inventory-type")); 112 metadata.AssetType = Convert.ToSByte(reader.ReadElementString("inventory-type"));
113 113
114 m_metadata[filename] = metadata; 114 m_metadata[filename] = metadata;
115 115
@@ -131,7 +131,7 @@ namespace OpenSim.Region.Environment.Modules.World.Archiver
131 { 131 {
132 foreach (string filename in m_assetDataAwaitingMetadata.Keys) 132 foreach (string filename in m_assetDataAwaitingMetadata.Keys)
133 { 133 {
134 ResolveAssetData(filename, m_assetDataAwaitingMetadata[filename]); 134 ResolveAssetData(filename, m_assetDataAwaitingMetadata[filename]);
135 } 135 }
136 } 136 }
137 137
diff --git a/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs b/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs
index 2515122..42df746 100644
--- a/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs
+++ b/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs
@@ -1391,7 +1391,6 @@ namespace OpenSim.Region.Environment.Scenes
1391 // distance2 = (float)GetDistanceTo(q, iray.Origin); 1391 // distance2 = (float)GetDistanceTo(q, iray.Origin);
1392 //} 1392 //}
1393 1393
1394
1395 if (distance2 < returnresult.distance) 1394 if (distance2 < returnresult.distance)
1396 { 1395 {
1397 returnresult.distance = distance2; 1396 returnresult.distance = distance2;
@@ -1410,8 +1409,8 @@ namespace OpenSim.Region.Environment.Scenes
1410 if (scaleComponent.y != 0) ScaleOffset = AXscale.y; 1409 if (scaleComponent.y != 0) ScaleOffset = AXscale.y;
1411 if (scaleComponent.z != 0) ScaleOffset = AXscale.z; 1410 if (scaleComponent.z != 0) ScaleOffset = AXscale.z;
1412 ScaleOffset = Math.Abs(ScaleOffset); 1411 ScaleOffset = Math.Abs(ScaleOffset);
1413 Vector3 offset = (returnresult.normal * ScaleOffset); 1412 Vector3 offset = returnresult.normal * ScaleOffset;
1414 returnresult.ipoint = (AXpos + offset ); 1413 returnresult.ipoint = AXpos + offset;
1415 1414
1416 ///pos = (intersectionpoint + offset); 1415 ///pos = (intersectionpoint + offset);
1417 } 1416 }
@@ -1420,10 +1419,8 @@ namespace OpenSim.Region.Environment.Scenes
1420 returnresult.normal = normals[i]; 1419 returnresult.normal = normals[i];
1421 } 1420 }
1422 returnresult.AAfaceNormal = AAfacenormals[i]; 1421 returnresult.AAfaceNormal = AAfacenormals[i];
1423
1424 } 1422 }
1425 } 1423 }
1426
1427 } 1424 }
1428 return returnresult; 1425 return returnresult;
1429 } 1426 }
@@ -1443,8 +1440,8 @@ namespace OpenSim.Region.Environment.Scenes
1443 //{ 1440 //{
1444 m_shape.State = (byte)AttachmentPoint; 1441 m_shape.State = (byte)AttachmentPoint;
1445 //} 1442 //}
1446
1447 } 1443 }
1444
1448 /// <summary> 1445 /// <summary>
1449 /// 1446 ///
1450 /// </summary> 1447 /// </summary>
@@ -1472,7 +1469,6 @@ namespace OpenSim.Region.Environment.Scenes
1472 if (m_parentGroup != null) 1469 if (m_parentGroup != null)
1473 { 1470 {
1474 m_parentGroup.SetAxisRotation(axis, rotate); 1471 m_parentGroup.SetAxisRotation(axis, rotate);
1475
1476 } 1472 }
1477 } 1473 }
1478 1474
@@ -1494,11 +1490,9 @@ namespace OpenSim.Region.Environment.Scenes
1494 { 1490 {
1495 PhysActor.FloatOnWater = false; 1491 PhysActor.FloatOnWater = false;
1496 } 1492 }
1497
1498 } 1493 }
1499 } 1494 }
1500 1495
1501
1502 public LLVector3 GetSitTargetPositionLL() 1496 public LLVector3 GetSitTargetPositionLL()
1503 { 1497 {
1504 return new LLVector3(m_sitTargetPosition.x, m_sitTargetPosition.y, m_sitTargetPosition.z); 1498 return new LLVector3(m_sitTargetPosition.x, m_sitTargetPosition.y, m_sitTargetPosition.z);
@@ -1544,7 +1538,6 @@ namespace OpenSim.Region.Environment.Scenes
1544 return m_sitTargetAvatar; 1538 return m_sitTargetAvatar;
1545 } 1539 }
1546 1540
1547
1548 public LLUUID GetRootPartUUID() 1541 public LLUUID GetRootPartUUID()
1549 { 1542 {
1550 if (m_parentGroup != null) 1543 if (m_parentGroup != null)
@@ -1797,8 +1790,6 @@ namespace OpenSim.Region.Environment.Scenes
1797 1790
1798 public void UpdatePrimFlags(ushort type, bool inUse, byte[] data) 1791 public void UpdatePrimFlags(ushort type, bool inUse, byte[] data)
1799 { 1792 {
1800
1801
1802 //m_log.Info("TSomething1:" + ((type & (ushort)ExtraParamType.Something1) == (ushort)ExtraParamType.Something1)); 1793 //m_log.Info("TSomething1:" + ((type & (ushort)ExtraParamType.Something1) == (ushort)ExtraParamType.Something1));
1803 //m_log.Info("TSomething2:" + ((type & (ushort)ExtraParamType.Something2) == (ushort)ExtraParamType.Something2)); 1794 //m_log.Info("TSomething2:" + ((type & (ushort)ExtraParamType.Something2) == (ushort)ExtraParamType.Something2));
1804 //m_log.Info("TSomething3:" + ((type & (ushort)ExtraParamType.Something3) == (ushort)ExtraParamType.Something3)); 1795 //m_log.Info("TSomething3:" + ((type & (ushort)ExtraParamType.Something3) == (ushort)ExtraParamType.Something3));
@@ -1814,7 +1805,6 @@ namespace OpenSim.Region.Environment.Scenes
1814 //bool IsLocked = false; 1805 //bool IsLocked = false;
1815 int i = 0; 1806 int i = 0;
1816 1807
1817
1818 try 1808 try
1819 { 1809 {
1820 i += 46; 1810 i += 46;
@@ -1858,7 +1848,6 @@ namespace OpenSim.Region.Environment.Scenes
1858 } 1848 }
1859 } 1849 }
1860 1850
1861
1862 if (IsPhantom) 1851 if (IsPhantom)
1863 { 1852 {
1864 AddFlag(LLObject.ObjectFlags.Phantom); 1853 AddFlag(LLObject.ObjectFlags.Phantom);
@@ -1927,6 +1916,7 @@ namespace OpenSim.Region.Environment.Scenes
1927 // System.Console.WriteLine("Update: PHY:" + UsePhysics.ToString() + ", T:" + IsTemporary.ToString() + ", PHA:" + IsPhantom.ToString() + " S:" + CastsShadows.ToString()); 1916 // System.Console.WriteLine("Update: PHY:" + UsePhysics.ToString() + ", T:" + IsTemporary.ToString() + ", PHA:" + IsPhantom.ToString() + " S:" + CastsShadows.ToString());
1928 ScheduleFullUpdate(); 1917 ScheduleFullUpdate();
1929 } 1918 }
1919
1930 public void ScriptSetPhysicsStatus(bool UsePhysics) 1920 public void ScriptSetPhysicsStatus(bool UsePhysics)
1931 { 1921 {
1932 if (m_parentGroup != null) 1922 if (m_parentGroup != null)
@@ -1934,6 +1924,7 @@ namespace OpenSim.Region.Environment.Scenes
1934 m_parentGroup.ScriptSetPhysicsStatus(UsePhysics); 1924 m_parentGroup.ScriptSetPhysicsStatus(UsePhysics);
1935 } 1925 }
1936 } 1926 }
1927
1937 public void ScriptSetPhantomStatus(bool Phantom) 1928 public void ScriptSetPhantomStatus(bool Phantom)
1938 { 1929 {
1939 if (m_parentGroup != null) 1930 if (m_parentGroup != null)
@@ -1941,6 +1932,7 @@ namespace OpenSim.Region.Environment.Scenes
1941 m_parentGroup.ScriptSetPhantomStatus(Phantom); 1932 m_parentGroup.ScriptSetPhantomStatus(Phantom);
1942 } 1933 }
1943 } 1934 }
1935
1944 public void DoPhysicsPropertyUpdate(bool UsePhysics, bool isNew) 1936 public void DoPhysicsPropertyUpdate(bool UsePhysics, bool isNew)
1945 { 1937 {
1946 if (PhysActor != null) 1938 if (PhysActor != null)
@@ -1965,7 +1957,6 @@ namespace OpenSim.Region.Environment.Scenes
1965 /// that's not wholesome. Had to make Scene public 1957 /// that's not wholesome. Had to make Scene public
1966 //PhysActor = null; 1958 //PhysActor = null;
1967 1959
1968
1969 if ((ObjectFlags & (uint) LLObject.ObjectFlags.Phantom) == 0) 1960 if ((ObjectFlags & (uint) LLObject.ObjectFlags.Phantom) == 0)
1970 { 1961 {
1971 //PhysActor = m_parentGroup.Scene.PhysicsScene.AddPrimShape( 1962 //PhysActor = m_parentGroup.Scene.PhysicsScene.AddPrimShape(
@@ -1989,7 +1980,6 @@ namespace OpenSim.Region.Environment.Scenes
1989 PhysActor.link(ParentGroup.RootPart.PhysActor); 1980 PhysActor.link(ParentGroup.RootPart.PhysActor);
1990 } 1981 }
1991 } 1982 }
1992
1993 } 1983 }
1994 } 1984 }
1995 } 1985 }
@@ -2029,7 +2019,6 @@ namespace OpenSim.Region.Environment.Scenes
2029 } 2019 }
2030 } 2020 }
2031 } 2021 }
2032
2033 } 2022 }
2034 2023
2035 #endregion 2024 #endregion
@@ -2394,7 +2383,6 @@ namespace OpenSim.Region.Environment.Scenes
2394 } 2383 }
2395 } 2384 }
2396 2385
2397
2398 public void AddFullUpdateToAvatar(ScenePresence presence) 2386 public void AddFullUpdateToAvatar(ScenePresence presence)
2399 { 2387 {
2400 presence.QueuePartForUpdate(this); 2388 presence.QueuePartForUpdate(this);
@@ -2454,13 +2442,11 @@ namespace OpenSim.Region.Environment.Scenes
2454 } 2442 }
2455 } 2443 }
2456 2444
2457
2458 byte[] color = new byte[] {m_color.R, m_color.G, m_color.B, m_color.A}; 2445 byte[] color = new byte[] {m_color.R, m_color.G, m_color.B, m_color.A};
2459 remoteClient.SendPrimitiveToClient( 2446 remoteClient.SendPrimitiveToClient(m_regionHandle, (ushort)(m_parentGroup.GetTimeDilation() * (float)ushort.MaxValue), LocalId, m_shape,
2460 m_regionHandle, (ushort)(m_parentGroup.GetTimeDilation() * (float)ushort.MaxValue), LocalId, m_shape, 2447 lPos, Velocity, Acceleration, RotationOffset, RotationalVelocity, clientFlags, m_uuid, OwnerID,
2461 lPos, Velocity, Acceleration, RotationOffset, RotationalVelocity, clientFlags, m_uuid, 2448 m_text, color, ParentID, m_particleSystem, m_clickAction, m_TextureAnimation, m_IsAttachment,
2462 OwnerID, 2449 m_attachmentPoint,fromAssetID, Sound, SoundGain, SoundFlags, SoundRadius);
2463 m_text, color, ParentID, m_particleSystem, m_clickAction, m_TextureAnimation, m_IsAttachment, m_attachmentPoint,fromAssetID, Sound, SoundGain, SoundFlags, SoundRadius);
2464 } 2450 }
2465 2451
2466 /// Terse updates 2452 /// Terse updates
@@ -2557,7 +2543,6 @@ namespace OpenSim.Region.Environment.Scenes
2557 m_parentGroup.AbsolutePosition = newpos; 2543 m_parentGroup.AbsolutePosition = newpos;
2558 return; 2544 return;
2559 } 2545 }
2560
2561 } 2546 }
2562 ScheduleTerseUpdate(); 2547 ScheduleTerseUpdate();
2563 2548
@@ -2578,7 +2563,6 @@ namespace OpenSim.Region.Environment.Scenes
2578 { 2563 {
2579 } 2564 }
2580 2565
2581
2582 public void SetText(string text) 2566 public void SetText(string text)
2583 { 2567 {
2584 Text = text; 2568 Text = text;
@@ -2724,7 +2708,6 @@ namespace OpenSim.Region.Environment.Scenes
2724 info.AddValue("PayPrice", PayPrice); 2708 info.AddValue("PayPrice", PayPrice);
2725 } 2709 }
2726 2710
2727
2728 public void Undo() 2711 public void Undo()
2729 { 2712 {
2730 if (m_undo.Count > 0) 2713 if (m_undo.Count > 0)
@@ -2837,10 +2820,9 @@ namespace OpenSim.Region.Environment.Scenes
2837 else 2820 else
2838 ScheduleFullUpdate(); 2821 ScheduleFullUpdate();
2839 } 2822 }
2823
2840 public void PhysicsCollision(EventArgs e) 2824 public void PhysicsCollision(EventArgs e)
2841 { 2825 {
2842 //return;
2843
2844 // single threaded here 2826 // single threaded here
2845 if (e == null) 2827 if (e == null)
2846 { 2828 {
@@ -2865,7 +2847,6 @@ namespace OpenSim.Region.Environment.Scenes
2865 startedColliders.Add(localid); 2847 startedColliders.Add(localid);
2866 } 2848 }
2867 2849
2868
2869 //m_log.Debug("[OBJECT]: Collided with:" + localid.ToString() + " at depth of: " + collissionswith[localid].ToString()); 2850 //m_log.Debug("[OBJECT]: Collided with:" + localid.ToString() + " at depth of: " + collissionswith[localid].ToString());
2870 } 2851 }
2871 } 2852 }
@@ -2878,7 +2859,6 @@ namespace OpenSim.Region.Environment.Scenes
2878 endedColliders.Add(localID); 2859 endedColliders.Add(localID);
2879 } 2860 }
2880 } 2861 }
2881
2882 2862
2883 //add the items that started colliding this time to the last colliders list. 2863 //add the items that started colliding this time to the last colliders list.
2884 foreach (uint localID in startedColliders) 2864 foreach (uint localID in startedColliders)
@@ -2944,7 +2924,6 @@ namespace OpenSim.Region.Environment.Scenes
2944 colliding.Add(detobj); 2924 colliding.Add(detobj);
2945 } 2925 }
2946 } 2926 }
2947
2948 } 2927 }
2949 } 2928 }
2950 } 2929 }
@@ -2958,7 +2937,6 @@ namespace OpenSim.Region.Environment.Scenes
2958 return; 2937 return;
2959 m_parentGroup.Scene.EventManager.TriggerScriptCollidingStart(LocalId, StartCollidingMessage); 2938 m_parentGroup.Scene.EventManager.TriggerScriptCollidingStart(LocalId, StartCollidingMessage);
2960 } 2939 }
2961
2962 } 2940 }
2963 } 2941 }
2964 if ((m_parentGroup.RootPart.ScriptEvents & scriptEvents.collision) != 0) 2942 if ((m_parentGroup.RootPart.ScriptEvents & scriptEvents.collision) != 0)
diff --git a/OpenSim/Region/Physics/Manager/PhysicsPluginManager.cs b/OpenSim/Region/Physics/Manager/PhysicsPluginManager.cs
index 4927cc5..3d9207f 100644
--- a/OpenSim/Region/Physics/Manager/PhysicsPluginManager.cs
+++ b/OpenSim/Region/Physics/Manager/PhysicsPluginManager.cs
@@ -130,11 +130,11 @@ namespace OpenSim.Region.Physics.Manager
130 IPhysicsPlugin plug = 130 IPhysicsPlugin plug =
131 (IPhysicsPlugin) Activator.CreateInstance(pluginAssembly.GetType(pluginType.ToString())); 131 (IPhysicsPlugin) Activator.CreateInstance(pluginAssembly.GetType(pluginType.ToString()));
132 plug.Init(); 132 plug.Init();
133 if(!_PhysPlugins.ContainsKey(plug.GetName())) 133 if (!_PhysPlugins.ContainsKey(plug.GetName()))
134 { 134 {
135 _PhysPlugins.Add(plug.GetName(), plug); 135 _PhysPlugins.Add(plug.GetName(), plug);
136 m_log.Info("[PHYSICS]: Added physics engine: " + plug.GetName()); 136 m_log.Info("[PHYSICS]: Added physics engine: " + plug.GetName());
137 } 137 }
138 } 138 }
139 139
140 Type meshTypeInterface = pluginType.GetInterface("IMeshingPlugin", true); 140 Type meshTypeInterface = pluginType.GetInterface("IMeshingPlugin", true);
@@ -143,11 +143,11 @@ namespace OpenSim.Region.Physics.Manager
143 { 143 {
144 IMeshingPlugin plug = 144 IMeshingPlugin plug =
145 (IMeshingPlugin) Activator.CreateInstance(pluginAssembly.GetType(pluginType.ToString())); 145 (IMeshingPlugin) Activator.CreateInstance(pluginAssembly.GetType(pluginType.ToString()));
146 if(!_MeshPlugins.ContainsKey(plug.GetName())) 146 if (!_MeshPlugins.ContainsKey(plug.GetName()))
147 { 147 {
148 _MeshPlugins.Add(plug.GetName(), plug); 148 _MeshPlugins.Add(plug.GetName(), plug);
149 m_log.Info("[PHYSICS]: Added meshing engine: " + plug.GetName()); 149 m_log.Info("[PHYSICS]: Added meshing engine: " + plug.GetName());
150 } 150 }
151 } 151 }
152 152
153 physTypeInterface = null; 153 physTypeInterface = null;
diff --git a/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/EventManager.cs b/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/EventManager.cs
index c51e66b..5a3ebc7 100644
--- a/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/EventManager.cs
+++ b/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/EventManager.cs
@@ -251,7 +251,7 @@ namespace OpenSim.Region.ScriptEngine.Common.ScriptEngineBase
251 detstruct._int[i] = detobj.colliderType; 251 detstruct._int[i] = detobj.colliderType;
252 detstruct._Vector3[i] = new LSL_Types.Vector3(detobj.posVector.X, detobj.posVector.Y, detobj.posVector.Z); 252 detstruct._Vector3[i] = new LSL_Types.Vector3(detobj.posVector.X, detobj.posVector.Y, detobj.posVector.Z);
253 detstruct._Vector32[i] = new LSL_Types.Vector3(detobj.velVector.X, detobj.velVector.Y, detobj.velVector.Z); 253 detstruct._Vector32[i] = new LSL_Types.Vector3(detobj.velVector.X, detobj.velVector.Y, detobj.velVector.Z);
254 detstruct._bool[i] = true; // Apparently the script engine uses this to see if this is a valid entry... 254 detstruct._bool[i] = true; // Apparently the script engine uses this to see if this is a valid entry...
255 i++; 255 i++;
256 } 256 }
257 257
@@ -307,7 +307,7 @@ namespace OpenSim.Region.ScriptEngine.Common.ScriptEngineBase
307 detstruct._int[i] = detobj.colliderType; 307 detstruct._int[i] = detobj.colliderType;
308 detstruct._Vector3[i] = new LSL_Types.Vector3(detobj.posVector.X, detobj.posVector.Y, detobj.posVector.Z); 308 detstruct._Vector3[i] = new LSL_Types.Vector3(detobj.posVector.X, detobj.posVector.Y, detobj.posVector.Z);
309 detstruct._Vector32[i] = new LSL_Types.Vector3(detobj.velVector.X, detobj.velVector.Y, detobj.velVector.Z); 309 detstruct._Vector32[i] = new LSL_Types.Vector3(detobj.velVector.X, detobj.velVector.Y, detobj.velVector.Z);
310 detstruct._bool[i] = true; // Apparently the script engine uses this to see if this is a valid entry... 310 detstruct._bool[i] = true; // Apparently the script engine uses this to see if this is a valid entry...
311 i++; 311 i++;
312 } 312 }
313 myScriptEngine.m_EventQueueManager.AddToObjectQueue(localID, "collision_end", EventQueueManager.llDetectNull, new object[] { new LSL_Types.LSLInteger(col.Colliders.Count) }); 313 myScriptEngine.m_EventQueueManager.AddToObjectQueue(localID, "collision_end", EventQueueManager.llDetectNull, new object[] { new LSL_Types.LSLInteger(col.Colliders.Count) });