diff options
author | Justin Clark-Casey (justincc) | 2010-02-04 22:22:18 +0000 |
---|---|---|
committer | Justin Clark-Casey (justincc) | 2010-02-04 22:22:18 +0000 |
commit | 16467f6654b22da0b660a1184e56485c01fc37e7 (patch) | |
tree | 1c1ba78c60f98f059722090a3663313bf0be1072 /OpenSim/Region/Framework/Scenes/Scene.cs | |
parent | minor: one method doc (diff) | |
parent | Applying patch #4534 by Misterblue to fix ODE physics stickiness (diff) | |
download | opensim-SC_OLD-16467f6654b22da0b660a1184e56485c01fc37e7.zip opensim-SC_OLD-16467f6654b22da0b660a1184e56485c01fc37e7.tar.gz opensim-SC_OLD-16467f6654b22da0b660a1184e56485c01fc37e7.tar.bz2 opensim-SC_OLD-16467f6654b22da0b660a1184e56485c01fc37e7.tar.xz |
Merge branch 'master' of ssh://justincc@opensimulator.org/var/git/opensim
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/Scene.cs | 29 |
1 files changed, 13 insertions, 16 deletions
diff --git a/OpenSim/Region/Framework/Scenes/Scene.cs b/OpenSim/Region/Framework/Scenes/Scene.cs index ff2be05..73b0b3e 100644 --- a/OpenSim/Region/Framework/Scenes/Scene.cs +++ b/OpenSim/Region/Framework/Scenes/Scene.cs | |||
@@ -2496,24 +2496,20 @@ namespace OpenSim.Region.Framework.Scenes | |||
2496 | 2496 | ||
2497 | //RootPrim.SetParentLocalId(parentLocalID); | 2497 | //RootPrim.SetParentLocalId(parentLocalID); |
2498 | 2498 | ||
2499 | m_log.DebugFormat( | 2499 | m_log.DebugFormat("[ATTACHMENT]: Received " + |
2500 | "[ATTACHMENT]: Received attachment {0}, inworld asset id {1}", | 2500 | "attachment {0}, inworld asset id {1}", |
2501 | //grp.RootPart.LastOwnerID.ToString(), | 2501 | //grp.RootPart.LastOwnerID.ToString(), |
2502 | grp.GetFromItemID(), | 2502 | grp.GetFromItemID(), |
2503 | grp.UUID.ToString()); | 2503 | grp.UUID.ToString()); |
2504 | 2504 | ||
2505 | //grp.SetFromAssetID(grp.RootPart.LastOwnerID); | 2505 | //grp.SetFromAssetID(grp.RootPart.LastOwnerID); |
2506 | m_log.DebugFormat( | 2506 | m_log.DebugFormat("[ATTACHMENT]: Attach " + |
2507 | "[ATTACHMENT]: Attach to avatar {0} at position {1}", sp.UUID.ToString(), grp.AbsolutePosition); | 2507 | "to avatar {0} at position {1}", |
2508 | 2508 | sp.UUID.ToString(), grp.AbsolutePosition); | |
2509 | if ( | 2509 | AttachObject(sp.ControllingClient, |
2510 | AttachObject( | 2510 | grp.LocalId, (uint)0, |
2511 | sp.ControllingClient, grp.LocalId, (uint)0, grp.GroupRotation, grp.AbsolutePosition, false)) | 2511 | grp.GroupRotation, |
2512 | { | 2512 | grp.AbsolutePosition, false); |
2513 | // Do this last so that event listeners have access to all the effects of the attachment | ||
2514 | EventManager.TriggerOnAttach(grp.LocalId, UUID.Zero, sp.UUID); | ||
2515 | } | ||
2516 | |||
2517 | RootPrim.RemFlag(PrimFlags.TemporaryOnRez); | 2513 | RootPrim.RemFlag(PrimFlags.TemporaryOnRez); |
2518 | grp.SendGroupFullUpdate(); | 2514 | grp.SendGroupFullUpdate(); |
2519 | } | 2515 | } |
@@ -2522,6 +2518,7 @@ namespace OpenSim.Region.Framework.Scenes | |||
2522 | RootPrim.RemFlag(PrimFlags.TemporaryOnRez); | 2518 | RootPrim.RemFlag(PrimFlags.TemporaryOnRez); |
2523 | RootPrim.AddFlag(PrimFlags.TemporaryOnRez); | 2519 | RootPrim.AddFlag(PrimFlags.TemporaryOnRez); |
2524 | } | 2520 | } |
2521 | |||
2525 | } | 2522 | } |
2526 | else | 2523 | else |
2527 | { | 2524 | { |