aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Framework/Scenes/Scene.Inventory.cs
diff options
context:
space:
mode:
authorMelanie2011-05-22 20:23:25 +0100
committerMelanie2011-05-22 20:23:25 +0100
commitbe1996f1210ba58ba44f9715de68a3675cf13582 (patch)
tree7306bfe8a6e89bd1b2de9f145bea85f2b5645164 /OpenSim/Region/Framework/Scenes/Scene.Inventory.cs
parentMerge branch 'master' into careminster-presence-refactor (diff)
parentAdd stubs for unimplemented lsl functions (diff)
downloadopensim-SC_OLD-be1996f1210ba58ba44f9715de68a3675cf13582.zip
opensim-SC_OLD-be1996f1210ba58ba44f9715de68a3675cf13582.tar.gz
opensim-SC_OLD-be1996f1210ba58ba44f9715de68a3675cf13582.tar.bz2
opensim-SC_OLD-be1996f1210ba58ba44f9715de68a3675cf13582.tar.xz
Merge branch 'master' 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.