mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 08:55:56 +08:00
Fix another reason for #2218
This commit is contained in:
@@ -1220,11 +1220,16 @@ namespace OpenSim.Region.Environment.Scenes
|
||||
/// <param name="part"></param>
|
||||
internal void SendPartTerseUpdate(IClientAPI remoteClient, SceneObjectPart part)
|
||||
{
|
||||
if (m_rootPart.UUID == part.UUID)
|
||||
SceneObjectPart rootPart = m_rootPart;
|
||||
|
||||
// TODO: that could by caused by some race condition with attachments on sim-crossing
|
||||
if (rootPart == null) return;
|
||||
|
||||
if (rootPart.UUID == part.UUID)
|
||||
{
|
||||
if (m_rootPart.IsAttachment)
|
||||
if (rootPart.IsAttachment)
|
||||
{
|
||||
part.SendTerseUpdateToClient(remoteClient, m_rootPart.AttachedPos);
|
||||
part.SendTerseUpdateToClient(remoteClient, rootPart.AttachedPos);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user