diff options
author | Sean Dague | 2007-12-05 18:45:05 +0000 |
---|---|---|
committer | Sean Dague | 2007-12-05 18:45:05 +0000 |
commit | 9c81b8a430b7fc8b0181310132f4bc9de414f19d (patch) | |
tree | ba6b03695d1bfdebfbc3c81bd55bc8ac41eeac46 /OpenSim/Region/Environment/Scenes/SceneManager.cs | |
parent | * Applied MSSQL Patch from akokko, Thanks! akokko (diff) | |
download | opensim-SC-9c81b8a430b7fc8b0181310132f4bc9de414f19d.zip opensim-SC-9c81b8a430b7fc8b0181310132f4bc9de414f19d.tar.gz opensim-SC-9c81b8a430b7fc8b0181310132f4bc9de414f19d.tar.bz2 opensim-SC-9c81b8a430b7fc8b0181310132f4bc9de414f19d.tar.xz |
From Gary Chernega (IBM)
This patch adds x, y, and z offsets to the load-xml command.
If you had a prim at 100,100,20 thats where it would get loaded everytime.
This patch lets you place it at an offset from 100,100,20.. as such:
load-xml <filespec> -newUI 3 1 2
Loading the prim at 103, 101, 22
Diffstat (limited to 'OpenSim/Region/Environment/Scenes/SceneManager.cs')
-rw-r--r-- | OpenSim/Region/Environment/Scenes/SceneManager.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/OpenSim/Region/Environment/Scenes/SceneManager.cs b/OpenSim/Region/Environment/Scenes/SceneManager.cs index 2af9af2..3f88617 100644 --- a/OpenSim/Region/Environment/Scenes/SceneManager.cs +++ b/OpenSim/Region/Environment/Scenes/SceneManager.cs | |||
@@ -160,9 +160,9 @@ namespace OpenSim.Region.Environment.Scenes | |||
160 | CurrentOrFirstScene.SavePrimsToXml(filename); | 160 | CurrentOrFirstScene.SavePrimsToXml(filename); |
161 | } | 161 | } |
162 | 162 | ||
163 | public void LoadCurrentSceneFromXml(string filename, bool generateNewIDs) | 163 | public void LoadCurrentSceneFromXml(string filename, bool generateNewIDs, LLVector3 loadOffset) |
164 | { | 164 | { |
165 | CurrentOrFirstScene.LoadPrimsFromXml(filename, generateNewIDs); | 165 | CurrentOrFirstScene.LoadPrimsFromXml(filename, generateNewIDs, loadOffset); |
166 | } | 166 | } |
167 | 167 | ||
168 | public void SaveCurrentSceneToXml2(string filename) | 168 | public void SaveCurrentSceneToXml2(string filename) |