diff options
author | Justin Clark-Casey (justincc) | 2011-04-28 00:59:21 +0100 |
---|---|---|
committer | Justin Clark-Casey (justincc) | 2011-04-28 01:13:58 +0100 |
commit | 8f3d2f5f5eb172923328f554821c34560dac4f3b (patch) | |
tree | f3b617e4b944de30305e38ed475a59ca520c9f81 | |
parent | add the executable bit to all bundled DLLs so that these are preserved when u... (diff) | |
download | opensim-SC_OLD-8f3d2f5f5eb172923328f554821c34560dac4f3b.zip opensim-SC_OLD-8f3d2f5f5eb172923328f554821c34560dac4f3b.tar.gz opensim-SC_OLD-8f3d2f5f5eb172923328f554821c34560dac4f3b.tar.bz2 opensim-SC_OLD-8f3d2f5f5eb172923328f554821c34560dac4f3b.tar.xz |
Fix a bug where physical objects rezzed with an initial velocity by script do not receive this velocity.
This is a minimal fix for the 0.7.1 release, pending a non copy/paste solution.
This hopefully addresses http://opensimulator.org/mantis/view.php?id=5457
The bug was introduced in commit 3ba5eeb
-rw-r--r-- | OpenSim/Region/Framework/Scenes/Scene.Inventory.cs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/OpenSim/Region/Framework/Scenes/Scene.Inventory.cs b/OpenSim/Region/Framework/Scenes/Scene.Inventory.cs index 0f85925..0b2b01a 100644 --- a/OpenSim/Region/Framework/Scenes/Scene.Inventory.cs +++ b/OpenSim/Region/Framework/Scenes/Scene.Inventory.cs | |||
@@ -2039,6 +2039,12 @@ namespace OpenSim.Region.Framework.Scenes | |||
2039 | if (rot != null) | 2039 | if (rot != null) |
2040 | group.UpdateGroupRotationR((Quaternion)rot); | 2040 | group.UpdateGroupRotationR((Quaternion)rot); |
2041 | 2041 | ||
2042 | // TODO: This needs to be refactored with the similar code in | ||
2043 | // SceneGraph.AddNewSceneObject(SceneObjectGroup sceneObject, bool attachToBackup, Vector3 pos, Quaternion rot, Vector3 vel) | ||
2044 | // possibly by allowing this method to take a null rotation. | ||
2045 | if (group.RootPart.PhysActor != null && group.RootPart.PhysActor.IsPhysical && vel != Vector3.Zero) | ||
2046 | group.RootPart.ApplyImpulse((vel * group.GetMass()), false); | ||
2047 | |||
2042 | // We can only call this after adding the scene object, since the scene object references the scene | 2048 | // We can only call this after adding the scene object, since the scene object references the scene |
2043 | // to find out if scripts should be activated at all. | 2049 | // to find out if scripts should be activated at all. |
2044 | group.CreateScriptInstances(param, true, DefaultScriptEngine, 3); | 2050 | group.CreateScriptInstances(param, true, DefaultScriptEngine, 3); |