mirror of
https://github.com/opensim/opensim.git
synced 2026-08-14 09:25:45 +08:00
Attempt to fix mantis #741, could not replicate it myself. But the error was suggesting that the SceneObjectPart was null, so added a null check, to make sure the sceneobject to be attached is found before attempting the attachment.
This commit is contained in:
@@ -290,6 +290,8 @@ namespace OpenSim.Region.Environment.Scenes
|
||||
{
|
||||
System.Console.WriteLine("Attaching object " + objectLocalID + " to " + AttachmentPt);
|
||||
SceneObjectPart p = GetSceneObjectPart(objectLocalID);
|
||||
if (p != null)
|
||||
{
|
||||
ScenePresence av = null;
|
||||
if (TryGetAvatar(remoteClient.AgentId, out av))
|
||||
{
|
||||
@@ -426,6 +428,11 @@ namespace OpenSim.Region.Environment.Scenes
|
||||
m_log.Info("[SCENE]: Avatar " + remoteClient.AgentId + " not found");
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
m_log.Info("[SCENE]: Attempting to attach object; Object " + objectLocalID + "(localID) not found");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public ScenePresence CreateAndAddScenePresence(IClientAPI client, bool child, AvatarAppearance appearance)
|
||||
|
||||
Reference in New Issue
Block a user