aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region
diff options
context:
space:
mode:
authorUbitUmarov2019-01-30 12:27:03 +0000
committerUbitUmarov2019-01-30 12:27:03 +0000
commit73e64c65970e91f10dc4683171145264835e5080 (patch)
tree3c76a908473b2eb23518d3668113b9369b2cb4c3 /OpenSim/Region
parentoops that went bad on linux, reverting (diff)
downloadopensim-SC-73e64c65970e91f10dc4683171145264835e5080.zip
opensim-SC-73e64c65970e91f10dc4683171145264835e5080.tar.gz
opensim-SC-73e64c65970e91f10dc4683171145264835e5080.tar.bz2
opensim-SC-73e64c65970e91f10dc4683171145264835e5080.tar.xz
mantis 6702: fix collisions lldetectedlinknumber also on Yengine
Diffstat (limited to 'OpenSim/Region')
-rw-r--r--OpenSim/Region/Framework/Scenes/SceneObjectPart.cs13
-rw-r--r--OpenSim/Region/ScriptEngine/XEngine/EventManager.cs1
-rw-r--r--OpenSim/Region/ScriptEngine/YEngine/XMREvents.cs8
3 files changed, 10 insertions, 12 deletions
diff --git a/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs b/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs
index 6d0854b..8a3ff71 100644
--- a/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs
+++ b/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs
@@ -2670,7 +2670,10 @@ namespace OpenSim.Region.Framework.Scenes
2670 detobj.velVector = obj.Velocity; 2670 detobj.velVector = obj.Velocity;
2671 detobj.colliderType = 0; 2671 detobj.colliderType = 0;
2672 detobj.groupUUID = obj.GroupID; 2672 detobj.groupUUID = obj.GroupID;
2673 detobj.linkNumber = LinkNum; 2673 if (VolumeDetectActive)
2674 detobj.linkNumber = 0;
2675 else
2676 detobj.linkNumber = LinkNum;
2674 return detobj; 2677 return detobj;
2675 } 2678 }
2676 2679
@@ -2689,7 +2692,10 @@ namespace OpenSim.Region.Framework.Scenes
2689 else if(detobj.velVector != Vector3.Zero) 2692 else if(detobj.velVector != Vector3.Zero)
2690 detobj.colliderType |= 0x2; //active 2693 detobj.colliderType |= 0x2; //active
2691 detobj.groupUUID = av.ControllingClient.ActiveGroupId; 2694 detobj.groupUUID = av.ControllingClient.ActiveGroupId;
2692 detobj.linkNumber = LinkNum; 2695 if (VolumeDetectActive)
2696 detobj.linkNumber = 0;
2697 else
2698 detobj.linkNumber = LinkNum;
2693 2699
2694 return detobj; 2700 return detobj;
2695 } 2701 }
@@ -2705,8 +2711,7 @@ namespace OpenSim.Region.Framework.Scenes
2705 detobj.velVector = Vector3.Zero; 2711 detobj.velVector = Vector3.Zero;
2706 detobj.colliderType = 0; 2712 detobj.colliderType = 0;
2707 detobj.groupUUID = UUID.Zero; 2713 detobj.groupUUID = UUID.Zero;
2708 detobj.linkNumber = LinkNum; // pass my link number not sure needed.. but no harm 2714 detobj.linkNumber = LinkNum;
2709
2710 return detobj; 2715 return detobj;
2711 } 2716 }
2712 2717
diff --git a/OpenSim/Region/ScriptEngine/XEngine/EventManager.cs b/OpenSim/Region/ScriptEngine/XEngine/EventManager.cs
index 55a77bc..b7fc161 100644
--- a/OpenSim/Region/ScriptEngine/XEngine/EventManager.cs
+++ b/OpenSim/Region/ScriptEngine/XEngine/EventManager.cs
@@ -245,7 +245,6 @@ namespace OpenSim.Region.ScriptEngine.XEngine
245 DetectParams d = new DetectParams(); 245 DetectParams d = new DetectParams();
246 d.Key =detobj.keyUUID; 246 d.Key =detobj.keyUUID;
247 d.Populate(myScriptEngine.World, detobj); 247 d.Populate(myScriptEngine.World, detobj);
248 d.LinkNum = detobj.linkNumber; // do it here since currently linknum is collided part
249 det.Add(d); 248 det.Add(d);
250 } 249 }
251 250
diff --git a/OpenSim/Region/ScriptEngine/YEngine/XMREvents.cs b/OpenSim/Region/ScriptEngine/YEngine/XMREvents.cs
index b4e92b9..5a8b2a3 100644
--- a/OpenSim/Region/ScriptEngine/YEngine/XMREvents.cs
+++ b/OpenSim/Region/ScriptEngine/YEngine/XMREvents.cs
@@ -231,13 +231,7 @@ namespace OpenSim.Region.ScriptEngine.Yengine
231 det[i++] = d; 231 det[i++] = d;
232 232
233 d.Key = detobj.keyUUID; 233 d.Key = detobj.keyUUID;
234 d.Populate(this.World); 234 d.Populate(World, detobj);
235
236 /* not done by XEngine...
237 d.Position = detobj.posVector;
238 d.Rotation = detobj.rotQuat;
239 d.Velocity = detobj.velVector;
240 ... */
241 } 235 }
242 236
243 this.PostObjectEvent(localID, new EventParams( 237 this.PostObjectEvent(localID, new EventParams(