From aafc82cd186dfb4a344fca8a37ed237f7c562903 Mon Sep 17 00:00:00 2001 From: MW Date: Wed, 5 Sep 2007 21:36:55 +0000 Subject: Added "force-update" console command (when a region is set as active), which forces the region to send updates of all the prims to all clients. Not sure how well this is going to work with a few users on at the same time, but it might work as a temporary hack to relieve the problem of missing prims. --- OpenSim/Region/Environment/Scenes/Scene.cs | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'OpenSim/Region/Environment') diff --git a/OpenSim/Region/Environment/Scenes/Scene.cs b/OpenSim/Region/Environment/Scenes/Scene.cs index 3ea9678..f0acf52 100644 --- a/OpenSim/Region/Environment/Scenes/Scene.cs +++ b/OpenSim/Region/Environment/Scenes/Scene.cs @@ -1275,6 +1275,17 @@ namespace OpenSim.Region.Environment.Scenes this.SetTimePhase(Convert.ToInt32(cmdparams[0])); break; + case "force-update": + Console.WriteLine("Updating all clients"); + foreach(EntityBase ent in this.Entities.Values) + { + if (ent is SceneObjectGroup) + { + ((SceneObjectGroup)ent).ScheduleGroupForFullUpdate(); + } + } + break; + case "backup": Backup(); break; -- cgit v1.1