mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 17:05:55 +08:00
Null checking ParentGroup is not needed. It can't be null.
This commit is contained in:
@@ -1704,8 +1704,7 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
// Reset sit target.
|
||||
if (part.GetAvatarOnSitTarget() == UUID)
|
||||
part.SitTargetAvatar = UUID.Zero;
|
||||
if (part.ParentGroup != null)
|
||||
part.ParentGroup.TriggerScriptChangedEvent(Changed.LINK);
|
||||
part.ParentGroup.TriggerScriptChangedEvent(Changed.LINK);
|
||||
|
||||
m_parentPosition = part.GetWorldPosition();
|
||||
ControllingClient.SendClearFollowCamProperties(part.ParentUUID);
|
||||
@@ -1814,8 +1813,7 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
sitOrientation = avSitOrientation;
|
||||
autopilot = false;
|
||||
}
|
||||
if (part.ParentGroup != null)
|
||||
part.ParentGroup.TriggerScriptChangedEvent(Changed.LINK);
|
||||
part.ParentGroup.TriggerScriptChangedEvent(Changed.LINK);
|
||||
|
||||
pos = part.AbsolutePosition + offset;
|
||||
//if (Math.Abs(part.AbsolutePosition.Z - AbsolutePosition.Z) > 1)
|
||||
|
||||
Reference in New Issue
Block a user