aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Environment/Scenes/SceneBase.cs
diff options
context:
space:
mode:
authorTeravus Ovares2008-04-15 23:10:12 +0000
committerTeravus Ovares2008-04-15 23:10:12 +0000
commite777f88028322c9a7042ba20669b00fd9fbd573c (patch)
tree47203f1ac640808b2523a5560485ee0ba63ed0f5 /OpenSim/Region/Environment/Scenes/SceneBase.cs
parentfix types on nhibernate mappings for User bits (diff)
downloadopensim-SC-e777f88028322c9a7042ba20669b00fd9fbd573c.zip
opensim-SC-e777f88028322c9a7042ba20669b00fd9fbd573c.tar.gz
opensim-SC-e777f88028322c9a7042ba20669b00fd9fbd573c.tar.bz2
opensim-SC-e777f88028322c9a7042ba20669b00fd9fbd573c.tar.xz
* A tweak of the caps system so that new caps have random paths instead of a fixed path
* This allows caps requests to be routed to regions where the agent is currently a root agent instead of the region that they logged into as it did previously. * This fixes a wide variety of bugs related to 'can't do X once i've crossed a border'. * The first seed cap request fails, the second one works. (this generates an error message on the console) * Experimental.
Diffstat (limited to 'OpenSim/Region/Environment/Scenes/SceneBase.cs')
-rw-r--r--OpenSim/Region/Environment/Scenes/SceneBase.cs12
1 files changed, 12 insertions, 0 deletions
diff --git a/OpenSim/Region/Environment/Scenes/SceneBase.cs b/OpenSim/Region/Environment/Scenes/SceneBase.cs
index 5551173..f863bff 100644
--- a/OpenSim/Region/Environment/Scenes/SceneBase.cs
+++ b/OpenSim/Region/Environment/Scenes/SceneBase.cs
@@ -214,5 +214,17 @@ namespace OpenSim.Region.Environment.Scenes
214 214
215 return null; 215 return null;
216 } 216 }
217 public string GetNewCapsPath(LLUUID agentID)
218 {
219 if (capsPaths.ContainsKey(agentID))
220 {
221 capsPaths[agentID] = LLUUID.Random().ToString();
222 }
223 else
224 {
225 capsPaths.Add(agentID, LLUUID.Random().ToString());
226 }
227 return GetCapsPath(agentID);
228 }
217 } 229 }
218} 230}