mirror of
https://github.com/opensim/opensim.git
synced 2026-08-11 20:05:33 +08:00
factor common code out into SOP.RemoveFromPhysics()
This commit is contained in:
@@ -530,10 +530,7 @@ namespace OpenSim.Region.CoreModules.Avatar.Attachments
|
||||
so.AttachedAvatar = sp.UUID;
|
||||
|
||||
if (so.RootPart.PhysActor != null)
|
||||
{
|
||||
m_scene.PhysicsScene.RemovePrim(so.RootPart.PhysActor);
|
||||
so.RootPart.PhysActor = null;
|
||||
}
|
||||
so.RootPart.RemoveFromPhysics();
|
||||
|
||||
so.AbsolutePosition = attachOffset;
|
||||
so.RootPart.AttachedPos = attachOffset;
|
||||
|
||||
Reference in New Issue
Block a user