diff options
author | Melanie | 2012-07-07 02:05:01 +0200 |
---|---|---|
committer | Melanie | 2012-07-07 02:05:01 +0200 |
commit | 6535f23e4b8fec9578dae5275db69b237a99e498 (patch) | |
tree | fcf5495a3ebc005812c377076def18d1bafa5bab /OpenSim/Region/Framework/Scenes/Serialization | |
parent | added llSetVelocity. will refuse to work on vehicles and on attachments ( th... (diff) | |
download | opensim-SC-6535f23e4b8fec9578dae5275db69b237a99e498.zip opensim-SC-6535f23e4b8fec9578dae5275db69b237a99e498.tar.gz opensim-SC-6535f23e4b8fec9578dae5275db69b237a99e498.tar.bz2 opensim-SC-6535f23e4b8fec9578dae5275db69b237a99e498.tar.xz |
Add saving vehicle physics data to the database
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/Serialization')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/Serialization/SceneObjectSerializer.cs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/OpenSim/Region/Framework/Scenes/Serialization/SceneObjectSerializer.cs b/OpenSim/Region/Framework/Scenes/Serialization/SceneObjectSerializer.cs index 151eba2..c7e4c3e 100644 --- a/OpenSim/Region/Framework/Scenes/Serialization/SceneObjectSerializer.cs +++ b/OpenSim/Region/Framework/Scenes/Serialization/SceneObjectSerializer.cs | |||
@@ -630,13 +630,13 @@ namespace OpenSim.Region.Framework.Scenes.Serialization | |||
630 | 630 | ||
631 | if (errors) | 631 | if (errors) |
632 | { | 632 | { |
633 | obj.sopVehicle = null; | 633 | obj.VehicleParams = null; |
634 | m_log.DebugFormat( | 634 | m_log.DebugFormat( |
635 | "[SceneObjectSerializer]: Parsing Vehicle for object part {0} {1} encountered errors. Please see earlier log entries.", | 635 | "[SceneObjectSerializer]: Parsing Vehicle for object part {0} {1} encountered errors. Please see earlier log entries.", |
636 | obj.Name, obj.UUID); | 636 | obj.Name, obj.UUID); |
637 | } | 637 | } |
638 | else | 638 | else |
639 | obj.sopVehicle = _vehicle; | 639 | obj.VehicleParams = _vehicle; |
640 | } | 640 | } |
641 | 641 | ||
642 | private static void ProcessShape(SceneObjectPart obj, XmlTextReader reader) | 642 | private static void ProcessShape(SceneObjectPart obj, XmlTextReader reader) |
@@ -1325,8 +1325,8 @@ namespace OpenSim.Region.Framework.Scenes.Serialization | |||
1325 | 1325 | ||
1326 | writer.WriteElementString("VolumeDetectActive", sop.VolumeDetectActive.ToString().ToLower()); | 1326 | writer.WriteElementString("VolumeDetectActive", sop.VolumeDetectActive.ToString().ToLower()); |
1327 | 1327 | ||
1328 | if (sop.sopVehicle != null) | 1328 | if (sop.VehicleParams != null) |
1329 | sop.sopVehicle.ToXml2(writer); | 1329 | sop.VehicleParams.ToXml2(writer); |
1330 | 1330 | ||
1331 | if(sop.PhysicsShapeType != sop.DefaultPhysicsShapeType()) | 1331 | if(sop.PhysicsShapeType != sop.DefaultPhysicsShapeType()) |
1332 | writer.WriteElementString("PhysicsShapeType", sop.PhysicsShapeType.ToString().ToLower()); | 1332 | writer.WriteElementString("PhysicsShapeType", sop.PhysicsShapeType.ToString().ToLower()); |