aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--OpenSim/Region/Framework/Scenes/Scene.cs17
1 files changed, 17 insertions, 0 deletions
diff --git a/OpenSim/Region/Framework/Scenes/Scene.cs b/OpenSim/Region/Framework/Scenes/Scene.cs
index 41e9bbc..5809508 100644
--- a/OpenSim/Region/Framework/Scenes/Scene.cs
+++ b/OpenSim/Region/Framework/Scenes/Scene.cs
@@ -104,6 +104,11 @@ namespace OpenSim.Region.Framework.Scenes
104 public bool m_allowScriptCrossings; 104 public bool m_allowScriptCrossings;
105 public bool m_useFlySlow; 105 public bool m_useFlySlow;
106 106
107 /// <summary>
108 /// Temporarily setting to trigger appearance resends at 60 second intervals.
109 /// </summary>
110 public bool SendPeriodicAppearanceUpdates { get; set; }
111
107 protected float m_defaultDrawDistance = 255.0f; 112 protected float m_defaultDrawDistance = 255.0f;
108 public float DefaultDrawDistance 113 public float DefaultDrawDistance
109 { 114 {
@@ -761,6 +766,8 @@ namespace OpenSim.Region.Framework.Scenes
761 m_update_presences = startupConfig.GetInt( "UpdateAgentsEveryNFrames", m_update_presences); 766 m_update_presences = startupConfig.GetInt( "UpdateAgentsEveryNFrames", m_update_presences);
762 m_update_terrain = startupConfig.GetInt( "UpdateTerrainEveryNFrames", m_update_terrain); 767 m_update_terrain = startupConfig.GetInt( "UpdateTerrainEveryNFrames", m_update_terrain);
763 m_update_temp_cleaning = startupConfig.GetInt( "UpdateTempCleaningEveryNFrames", m_update_temp_cleaning); 768 m_update_temp_cleaning = startupConfig.GetInt( "UpdateTempCleaningEveryNFrames", m_update_temp_cleaning);
769
770 SendPeriodicAppearanceUpdates = startupConfig.GetBoolean("SendPeriodicAppearanceUpdates", SendPeriodicAppearanceUpdates);
764 } 771 }
765 772
766 #endregion Region Config 773 #endregion Region Config
@@ -1296,6 +1303,16 @@ namespace OpenSim.Region.Framework.Scenes
1296 }); 1303 });
1297 } 1304 }
1298 1305
1306 if (SendPeriodicAppearanceUpdates && MaintenanceRun % 60 == 0)
1307 {
1308 m_log.DebugFormat("[SCENE]: Sending periodic appearance updates");
1309
1310 if (AvatarFactory != null)
1311 {
1312 ForEachRootScenePresence(sp => AvatarFactory.SendAppearance(sp.UUID));
1313 }
1314 }
1315
1299 Watchdog.UpdateThread(); 1316 Watchdog.UpdateThread();
1300 1317
1301 previousMaintenanceTick = m_lastMaintenanceTick; 1318 previousMaintenanceTick = m_lastMaintenanceTick;