mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 17:05:55 +08:00
bug fix: StateSource of a SOG that is not a attachment is StateSource.PrimCrossing
This commit is contained in:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user