From 9e37d246240db077fe7a4e1389f5220d72d6542c Mon Sep 17 00:00:00 2001 From: Melanie Date: Fri, 29 Jan 2010 11:47:45 +0000 Subject: Prevent empty ObjectProperties packets being sent --- OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs') diff --git a/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs b/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs index 64e45d0..1496f5c 100644 --- a/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs +++ b/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs @@ -3885,6 +3885,9 @@ namespace OpenSim.Region.ClientStack.LindenUDP { m_propertiesPacketTimer.Stop(); + if (m_propertiesBlocks.Count == 0) + return; + proper.ObjectData = new ObjectPropertiesPacket.ObjectDataBlock[m_propertiesBlocks.Count]; int index = 0; -- cgit v1.1