aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Framework/Scenes/Scene.Inventory.cs
diff options
context:
space:
mode:
authorMelanie2011-05-22 20:00:59 +0200
committerMelanie2011-05-22 20:00:59 +0200
commit89705b19c7a921f3a1432203694f76a3c3711775 (patch)
tree0da8e5adfbb408042a6658b8315c9337f8affd3a /OpenSim/Region/Framework/Scenes/Scene.Inventory.cs
parentAdd a missing virtual keyword (diff)
parentMerge branch 'master' into careminster-presence-refactor (diff)
downloadopensim-SC-89705b19c7a921f3a1432203694f76a3c3711775.zip
opensim-SC-89705b19c7a921f3a1432203694f76a3c3711775.tar.gz
opensim-SC-89705b19c7a921f3a1432203694f76a3c3711775.tar.bz2
opensim-SC-89705b19c7a921f3a1432203694f76a3c3711775.tar.xz
Merge branch 'careminster-presence-refactor' of ssh://3dhosting.de/var/git/careminster into careminster-presence-refactor
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/Scene.Inventory.cs')
-rw-r--r--OpenSim/Region/Framework/Scenes/Scene.Inventory.cs14
1 files changed, 1 insertions, 13 deletions
diff --git a/OpenSim/Region/Framework/Scenes/Scene.Inventory.cs b/OpenSim/Region/Framework/Scenes/Scene.Inventory.cs
index 431f3dc..0b92818 100644
--- a/OpenSim/Region/Framework/Scenes/Scene.Inventory.cs
+++ b/OpenSim/Region/Framework/Scenes/Scene.Inventory.cs
@@ -2145,19 +2145,7 @@ namespace OpenSim.Region.Framework.Scenes
2145 sourcePart.Inventory.RemoveInventoryItem(item.ItemID); 2145 sourcePart.Inventory.RemoveInventoryItem(item.ItemID);
2146 } 2146 }
2147 2147
2148 AddNewSceneObject(group, true); 2148 AddNewSceneObject(group, true, pos, rot, vel);
2149
2150 group.AbsolutePosition = pos;
2151 group.Velocity = vel;
2152
2153 if (rot != null)
2154 group.UpdateGroupRotationR((Quaternion)rot);
2155
2156 // TODO: This needs to be refactored with the similar code in
2157 // SceneGraph.AddNewSceneObject(SceneObjectGroup sceneObject, bool attachToBackup, Vector3 pos, Quaternion rot, Vector3 vel)
2158 // possibly by allowing this method to take a null rotation.
2159 if (group.RootPart.PhysActor != null && group.RootPart.PhysActor.IsPhysical && vel != Vector3.Zero)
2160 group.RootPart.ApplyImpulse((vel * group.GetMass()), false);
2161 2149
2162 // We can only call this after adding the scene object, since the scene object references the scene 2150 // We can only call this after adding the scene object, since the scene object references the scene
2163 // to find out if scripts should be activated at all. 2151 // to find out if scripts should be activated at all.