bug fix: StateSource of a SOG that is not a attachment is StateSource.PrimCrossing

LSLKeyTest
UbitUmarov 2015-11-17 00:48:35 +00:00
parent 895a57e426
commit 67aefb5e42
1 changed files with 3 additions and 1 deletions

View File

@ -3064,8 +3064,10 @@ namespace OpenSim.Region.Framework.Scenes
private int GetStateSource(SceneObjectGroup sog)
{
ScenePresence sp = GetScenePresence(sog.OwnerID);
if(!sog.IsAttachmentCheckFull())
return 2; // StateSource.PrimCrossing
ScenePresence sp = GetScenePresence(sog.OwnerID);
if (sp != null)
return sp.GetStateSource();