mirror of
https://github.com/opensim/opensim.git
synced 2026-08-01 14:16:07 +08:00
* Fixes cases where Last Attachment Point gets overwritten with 0 when it shouldn't
* Fixes cases where Last Attachment Point doesn't get written when it should. * Fixes Null Reference in BaseHttpServer when shutting down, null path provided. * Drop then Wear retains Last Attachment Point
This commit is contained in:
@@ -1667,7 +1667,8 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
ScenePresence avatar = m_scene.GetScenePresence(AttachedAvatar);
|
||||
if (avatar == null)
|
||||
return;
|
||||
|
||||
m_rootPart.Shape.LastAttachPoint = m_rootPart.Shape.State;
|
||||
m_rootPart.AttachedPos = m_rootPart.OffsetPosition;
|
||||
avatar.RemoveAttachment(this);
|
||||
|
||||
Vector3 detachedpos = new Vector3(127f,127f,127f);
|
||||
@@ -2107,6 +2108,7 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
|
||||
if (RootPart.Shape.PCode == 9 && RootPart.Shape.State != 0)
|
||||
{
|
||||
RootPart.Shape.LastAttachPoint = RootPart.Shape.State;
|
||||
RootPart.Shape.State = 0;
|
||||
ScheduleGroupForFullUpdate();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user