diff options
author | UbitUmarov | 2012-02-19 18:10:00 +0000 |
---|---|---|
committer | UbitUmarov | 2012-02-19 18:10:00 +0000 |
commit | 60d68ee3122a974007adec6e651fad461d8abda4 (patch) | |
tree | 94908ebd64cd2bf5735f3a57c3510c8eac37d0c4 /OpenSim/Region/Framework/Scenes/SceneObjectPart.cs | |
parent | moved vehicle from SOG to SOP (diff) | |
download | opensim-SC_OLD-60d68ee3122a974007adec6e651fad461d8abda4.zip opensim-SC_OLD-60d68ee3122a974007adec6e651fad461d8abda4.tar.gz opensim-SC_OLD-60d68ee3122a974007adec6e651fad461d8abda4.tar.bz2 opensim-SC_OLD-60d68ee3122a974007adec6e651fad461d8abda4.tar.xz |
Vehicle XML serialization more complete. Inactived by coments in SceneObjectSerializar.cs until proper testing
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/SceneObjectPart.cs')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/SceneObjectPart.cs | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs b/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs index eb59ffd..4cd5183 100644 --- a/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs +++ b/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs | |||
@@ -3177,6 +3177,18 @@ namespace OpenSim.Region.Framework.Scenes | |||
3177 | } | 3177 | } |
3178 | } | 3178 | } |
3179 | 3179 | ||
3180 | public SOPVehicle sopVehicle | ||
3181 | { | ||
3182 | get | ||
3183 | { | ||
3184 | return m_vehicle; | ||
3185 | } | ||
3186 | set | ||
3187 | { | ||
3188 | m_vehicle = value; | ||
3189 | } | ||
3190 | } | ||
3191 | |||
3180 | 3192 | ||
3181 | public int VehicleType | 3193 | public int VehicleType |
3182 | { | 3194 | { |
@@ -3196,6 +3208,7 @@ namespace OpenSim.Region.Framework.Scenes | |||
3196 | public void SetVehicleType(int type) | 3208 | public void SetVehicleType(int type) |
3197 | { | 3209 | { |
3198 | m_vehicle = null; | 3210 | m_vehicle = null; |
3211 | |||
3199 | if (type == (int)Vehicle.TYPE_NONE) | 3212 | if (type == (int)Vehicle.TYPE_NONE) |
3200 | { | 3213 | { |
3201 | if (_parentID ==0 && PhysActor != null) | 3214 | if (_parentID ==0 && PhysActor != null) |