diff options
author | UbitUmarov | 2012-02-18 16:16:48 +0000 |
---|---|---|
committer | UbitUmarov | 2012-02-18 16:16:48 +0000 |
commit | 91a326331fedc702cc3f04a628841447b90d009a (patch) | |
tree | 744959a5db548e0505183a71df2c3a5b5fe89f12 /OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs | |
parent | let SOG know about vehicles. Still needs serialization and applyphyscis on d... (diff) | |
download | opensim-SC-91a326331fedc702cc3f04a628841447b90d009a.zip opensim-SC-91a326331fedc702cc3f04a628841447b90d009a.tar.gz opensim-SC-91a326331fedc702cc3f04a628841447b90d009a.tar.bz2 opensim-SC-91a326331fedc702cc3f04a628841447b90d009a.tar.xz |
vehicle parameters do cross (i hope) on regions in same instance ( others need xml)
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs b/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs index 1bac4d8..324fdb8 100644 --- a/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs +++ b/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs | |||
@@ -1782,14 +1782,19 @@ namespace OpenSim.Region.Framework.Scenes | |||
1782 | // ResetChildPrimPhysicsPositions(); | 1782 | // ResetChildPrimPhysicsPositions(); |
1783 | if (m_rootPart.PhysActor != null) | 1783 | if (m_rootPart.PhysActor != null) |
1784 | { | 1784 | { |
1785 | if (m_vehicle != null) | ||
1786 | m_vehicle.SetVehicle(m_rootPart.PhysActor); | ||
1785 | m_rootPart.PhysActor.Building = false; | 1787 | m_rootPart.PhysActor.Building = false; |
1786 | |||
1787 | } | 1788 | } |
1788 | } | 1789 | } |
1789 | else | 1790 | else |
1790 | { | 1791 | { |
1791 | // Apply physics to the root prim | 1792 | // Apply physics to the root prim |
1792 | m_rootPart.ApplyPhysics(m_rootPart.GetEffectiveObjectFlags(), m_rootPart.VolumeDetectActive, false); | 1793 | m_rootPart.ApplyPhysics(m_rootPart.GetEffectiveObjectFlags(), m_rootPart.VolumeDetectActive, false); |
1794 | if (m_rootPart.PhysActor != null && m_vehicle != null) | ||
1795 | { | ||
1796 | m_vehicle.SetVehicle(m_rootPart.PhysActor); | ||
1797 | } | ||
1793 | } | 1798 | } |
1794 | } | 1799 | } |
1795 | 1800 | ||