diff options
author | Justin Clarke Casey | 2008-06-12 17:49:08 +0000 |
---|---|---|
committer | Justin Clarke Casey | 2008-06-12 17:49:08 +0000 |
commit | 8714833986cef44787fd57a61699b7bdcfd3d3bb (patch) | |
tree | fbd78ff5755484df5ca5732389a7006f92db6508 /OpenSim/Region/Environment/Modules | |
parent | * refactor: rename CreatePrimFromXml to CreatePrimFromXml2 (diff) | |
download | opensim-SC-8714833986cef44787fd57a61699b7bdcfd3d3bb.zip opensim-SC-8714833986cef44787fd57a61699b7bdcfd3d3bb.tar.gz opensim-SC-8714833986cef44787fd57a61699b7bdcfd3d3bb.tar.bz2 opensim-SC-8714833986cef44787fd57a61699b7bdcfd3d3bb.tar.xz |
* refactor: For new objects, move attach to backup to occur when adding to a scene, rather than on creation of the group
* Adding to a scene is now parameterized such that one can choose not to actually persist that group
* This is to support a use case where a module wants a scene which consists of both objects which are persisted, and ones which are just temporary for the lifetime of that server instance
Diffstat (limited to 'OpenSim/Region/Environment/Modules')
-rw-r--r-- | OpenSim/Region/Environment/Modules/World/Serialiser/SceneXmlLoader.cs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/OpenSim/Region/Environment/Modules/World/Serialiser/SceneXmlLoader.cs b/OpenSim/Region/Environment/Modules/World/Serialiser/SceneXmlLoader.cs index 0c4887f..54538d8 100644 --- a/OpenSim/Region/Environment/Modules/World/Serialiser/SceneXmlLoader.cs +++ b/OpenSim/Region/Environment/Modules/World/Serialiser/SceneXmlLoader.cs | |||
@@ -64,7 +64,7 @@ namespace OpenSim.Region.Environment.Scenes | |||
64 | //if we want this to be a import method then we need new uuids for the object to avoid any clashes | 64 | //if we want this to be a import method then we need new uuids for the object to avoid any clashes |
65 | //obj.RegenerateFullIDs(); | 65 | //obj.RegenerateFullIDs(); |
66 | 66 | ||
67 | scene.AddSceneObject(obj); | 67 | scene.AddSceneObject(obj, true); |
68 | 68 | ||
69 | SceneObjectPart rootPart = obj.GetChildPart(obj.UUID); | 69 | SceneObjectPart rootPart = obj.GetChildPart(obj.UUID); |
70 | // Apply loadOffsets for load/import and move combinations | 70 | // Apply loadOffsets for load/import and move combinations |
@@ -193,8 +193,7 @@ namespace OpenSim.Region.Environment.Scenes | |||
193 | /// <param name="xmlData"></param> | 193 | /// <param name="xmlData"></param> |
194 | protected static void CreatePrimFromXml2(Scene scene, string xmlData) | 194 | protected static void CreatePrimFromXml2(Scene scene, string xmlData) |
195 | { | 195 | { |
196 | SceneObjectGroup obj = new SceneObjectGroup(xmlData); | 196 | SceneObjectGroup obj = new SceneObjectGroup(xmlData); |
197 | |||
198 | 197 | ||
199 | LLVector3 receivedVelocity = obj.RootPart.Velocity; | 198 | LLVector3 receivedVelocity = obj.RootPart.Velocity; |
200 | //System.Console.WriteLine(obj.RootPart.Velocity.ToString()); | 199 | //System.Console.WriteLine(obj.RootPart.Velocity.ToString()); |