diff options
Diffstat (limited to 'OpenSim/Region/Environment')
-rw-r--r-- | OpenSim/Region/Environment/Scenes/Scene.Inventory.cs | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/OpenSim/Region/Environment/Scenes/Scene.Inventory.cs b/OpenSim/Region/Environment/Scenes/Scene.Inventory.cs index 750b5b9..4db735a 100644 --- a/OpenSim/Region/Environment/Scenes/Scene.Inventory.cs +++ b/OpenSim/Region/Environment/Scenes/Scene.Inventory.cs | |||
@@ -2472,7 +2472,12 @@ namespace OpenSim.Region.Environment.Scenes | |||
2472 | } | 2472 | } |
2473 | group.UpdateGroupRotation(rot); | 2473 | group.UpdateGroupRotation(rot); |
2474 | //group.ApplyPhysics(m_physicalPrim); | 2474 | //group.ApplyPhysics(m_physicalPrim); |
2475 | group.Velocity = vel; | 2475 | if (group.RootPart.PhysActor != null && group.RootPart.PhysActor.IsPhysical && vel != Vector3.Zero) |
2476 | { | ||
2477 | group.RootPart.ApplyImpulse(vel, false); | ||
2478 | group.Velocity = vel; | ||
2479 | rootPart.ScheduleFullUpdate(); | ||
2480 | } | ||
2476 | group.CreateScriptInstances(param, true, DefaultScriptEngine, 2); | 2481 | group.CreateScriptInstances(param, true, DefaultScriptEngine, 2); |
2477 | rootPart.ScheduleFullUpdate(); | 2482 | rootPart.ScheduleFullUpdate(); |
2478 | 2483 | ||