dont find parts of groups marked as Deleted

LSLKeyTest
UbitUmarov 2015-11-16 21:11:22 +00:00
parent 99ecf522cd
commit ca4b7efd0f
1 changed files with 1 additions and 1 deletions

View File

@ -1171,7 +1171,7 @@ namespace OpenSim.Region.Framework.Scenes
protected internal SceneObjectPart GetSceneObjectPart(uint localID) protected internal SceneObjectPart GetSceneObjectPart(uint localID)
{ {
SceneObjectGroup group = GetGroupByPrim(localID); SceneObjectGroup group = GetGroupByPrim(localID);
if (group == null) if (group == null || group.IsDeleted)
return null; return null;
return group.GetPart(localID); return group.GetPart(localID);
} }