diff options
Diffstat (limited to 'OpenSim/Region/Environment/Scenes/SceneXmlLoader.cs')
-rw-r--r-- | OpenSim/Region/Environment/Scenes/SceneXmlLoader.cs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/OpenSim/Region/Environment/Scenes/SceneXmlLoader.cs b/OpenSim/Region/Environment/Scenes/SceneXmlLoader.cs index 6d911f1..4982613 100644 --- a/OpenSim/Region/Environment/Scenes/SceneXmlLoader.cs +++ b/OpenSim/Region/Environment/Scenes/SceneXmlLoader.cs | |||
@@ -175,6 +175,8 @@ namespace OpenSim.Region.Environment.Scenes | |||
175 | public void CreatePrimFromXml(string xmlData) | 175 | public void CreatePrimFromXml(string xmlData) |
176 | { | 176 | { |
177 | SceneObjectGroup obj = new SceneObjectGroup(xmlData); | 177 | SceneObjectGroup obj = new SceneObjectGroup(xmlData); |
178 | LLVector3 receivedVelocity = obj.RootPart.Velocity; | ||
179 | //System.Console.WriteLine(obj.RootPart.Velocity.ToString()); | ||
178 | m_innerScene.AddEntityFromStorage(obj); | 180 | m_innerScene.AddEntityFromStorage(obj); |
179 | 181 | ||
180 | SceneObjectPart rootPart = obj.GetChildPart(obj.UUID); | 182 | SceneObjectPart rootPart = obj.GetChildPart(obj.UUID); |
@@ -191,6 +193,8 @@ namespace OpenSim.Region.Environment.Scenes | |||
191 | new Quaternion(rootPart.RotationOffset.W, rootPart.RotationOffset.X, | 193 | new Quaternion(rootPart.RotationOffset.W, rootPart.RotationOffset.X, |
192 | rootPart.RotationOffset.Y, rootPart.RotationOffset.Z), UsePhysics); | 194 | rootPart.RotationOffset.Y, rootPart.RotationOffset.Z), UsePhysics); |
193 | rootPart.DoPhysicsPropertyUpdate(UsePhysics, true); | 195 | rootPart.DoPhysicsPropertyUpdate(UsePhysics, true); |
196 | rootPart.Velocity = receivedVelocity; | ||
197 | |||
194 | } | 198 | } |
195 | } | 199 | } |
196 | 200 | ||