diff options
Diffstat (limited to 'OpenSim/Region/Environment/Scenes/Scene.Inventory.cs')
-rw-r--r-- | OpenSim/Region/Environment/Scenes/Scene.Inventory.cs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/OpenSim/Region/Environment/Scenes/Scene.Inventory.cs b/OpenSim/Region/Environment/Scenes/Scene.Inventory.cs index a0c9a50..17f7566 100644 --- a/OpenSim/Region/Environment/Scenes/Scene.Inventory.cs +++ b/OpenSim/Region/Environment/Scenes/Scene.Inventory.cs | |||
@@ -456,6 +456,7 @@ namespace OpenSim.Region.Environment.Scenes | |||
456 | AddEntity(group); | 456 | AddEntity(group); |
457 | group.AbsolutePosition = pos; | 457 | group.AbsolutePosition = pos; |
458 | SceneObjectPart rootPart = group.GetChildPart(group.UUID); | 458 | SceneObjectPart rootPart = group.GetChildPart(group.UUID); |
459 | bool UsePhysics = ((rootPart.ObjectFlags & (uint)LLObject.ObjectFlags.Physics) > 0); | ||
459 | if ((rootPart.ObjectFlags & (uint) LLObject.ObjectFlags.Phantom) == 0) | 460 | if ((rootPart.ObjectFlags & (uint) LLObject.ObjectFlags.Phantom) == 0) |
460 | { | 461 | { |
461 | PrimitiveBaseShape pbs = rootPart.Shape; | 462 | PrimitiveBaseShape pbs = rootPart.Shape; |
@@ -466,7 +467,7 @@ namespace OpenSim.Region.Environment.Scenes | |||
466 | rootPart.AbsolutePosition.Z), | 467 | rootPart.AbsolutePosition.Z), |
467 | new PhysicsVector(rootPart.Scale.X, rootPart.Scale.Y, rootPart.Scale.Z), | 468 | new PhysicsVector(rootPart.Scale.X, rootPart.Scale.Y, rootPart.Scale.Z), |
468 | new Quaternion(rootPart.RotationOffset.W, rootPart.RotationOffset.X, | 469 | new Quaternion(rootPart.RotationOffset.W, rootPart.RotationOffset.X, |
469 | rootPart.RotationOffset.Y, rootPart.RotationOffset.Z)); | 470 | rootPart.RotationOffset.Y, rootPart.RotationOffset.Z), UsePhysics); |
470 | } | 471 | } |
471 | } | 472 | } |
472 | } | 473 | } |