Fix a possible nullref in BestAvatarResponsiveness policy
parent
d00a954d35
commit
a32b0ce0ae
|
@ -186,9 +186,9 @@ namespace OpenSim.Region.Framework.Scenes
|
||||||
return 0.0;
|
return 0.0;
|
||||||
|
|
||||||
// Use group position for child prims
|
// Use group position for child prims
|
||||||
Vector3 entityPos = entity.AbsolutePosition;
|
Vector3 entityPos;
|
||||||
if (entity is SceneObjectPart)
|
if (entity is SceneObjectPart)
|
||||||
entityPos = m_scene.GetGroupByPrim(entity.LocalId).AbsolutePosition;
|
entityPos = ((SceneObjectPart)entity).ParentGroup.AbsolutePosition;
|
||||||
else
|
else
|
||||||
entityPos = entity.AbsolutePosition;
|
entityPos = entity.AbsolutePosition;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue