diff options
author | Teravus Ovares | 2007-11-18 13:37:02 +0000 |
---|---|---|
committer | Teravus Ovares | 2007-11-18 13:37:02 +0000 |
commit | 46ccfa1741abbf445b49e79045e649798d1c0b63 (patch) | |
tree | 44a5495e2026a57299b819acc0dea790d66c7a33 /OpenSim/Region/Environment/Scenes/Scene.cs | |
parent | Made the background (ie empty space) colour of the exported map image blue. (diff) | |
download | opensim-SC_OLD-46ccfa1741abbf445b49e79045e649798d1c0b63.zip opensim-SC_OLD-46ccfa1741abbf445b49e79045e649798d1c0b63.tar.gz opensim-SC_OLD-46ccfa1741abbf445b49e79045e649798d1c0b63.tar.bz2 opensim-SC_OLD-46ccfa1741abbf445b49e79045e649798d1c0b63.tar.xz |
* Found several cases where prim set physical were not subscribing to physics events.
Diffstat (limited to 'OpenSim/Region/Environment/Scenes/Scene.cs')
-rw-r--r-- | OpenSim/Region/Environment/Scenes/Scene.cs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/OpenSim/Region/Environment/Scenes/Scene.cs b/OpenSim/Region/Environment/Scenes/Scene.cs index 0470335..0b9d218 100644 --- a/OpenSim/Region/Environment/Scenes/Scene.cs +++ b/OpenSim/Region/Environment/Scenes/Scene.cs | |||
@@ -647,6 +647,8 @@ namespace OpenSim.Region.Environment.Scenes | |||
647 | // if not phantom, add to physics | 647 | // if not phantom, add to physics |
648 | bool UsePhysics = (((rootPart.ObjectFlags & (uint)LLObject.ObjectFlags.Physics) > 0) && m_physicalPrim); | 648 | bool UsePhysics = (((rootPart.ObjectFlags & (uint)LLObject.ObjectFlags.Physics) > 0) && m_physicalPrim); |
649 | if ((rootPart.ObjectFlags & (uint)LLObject.ObjectFlags.Phantom) == 0) | 649 | if ((rootPart.ObjectFlags & (uint)LLObject.ObjectFlags.Phantom) == 0) |
650 | { | ||
651 | |||
650 | rootPart.PhysActor = | 652 | rootPart.PhysActor = |
651 | phyScene.AddPrimShape( | 653 | phyScene.AddPrimShape( |
652 | rootPart.Name, | 654 | rootPart.Name, |
@@ -654,6 +656,10 @@ namespace OpenSim.Region.Environment.Scenes | |||
654 | new PhysicsVector(pos.X, pos.Y, pos.Z), | 656 | new PhysicsVector(pos.X, pos.Y, pos.Z), |
655 | new PhysicsVector(shape.Scale.X, shape.Scale.Y, shape.Scale.Z), | 657 | new PhysicsVector(shape.Scale.X, shape.Scale.Y, shape.Scale.Z), |
656 | new Quaternion(), UsePhysics); | 658 | new Quaternion(), UsePhysics); |
659 | // subscribe to physics events. | ||
660 | rootPart.doPhysicsPropertyUpdate(UsePhysics); | ||
661 | |||
662 | } | ||
657 | } | 663 | } |
658 | } | 664 | } |
659 | 665 | ||