Fix prim linking bug, Manis #14

avinationmerge
Kitto Flora 2009-12-15 20:04:53 -05:00
parent 0020afaf67
commit 7cd44c1a81
1 changed files with 8 additions and 2 deletions

View File

@ -513,6 +513,12 @@ namespace OpenSim.Region.Framework.Scenes
{
// If this is a linkset, we don't want the physics engine mucking up our group position here.
PhysicsActor actor = PhysActor;
if (actor != null && _parentID == 0)
{
m_groupPosition = actor.Position;
}
/*
if (actor != null)
{
if (_parentID == 0)
@ -524,7 +530,7 @@ namespace OpenSim.Region.Framework.Scenes
m_groupPosition = ParentGroup.AbsolutePosition; // KF+Casper Update Child prims too!
}
}
*/
if (IsAttachment)
{
ScenePresence sp = m_parentGroup.Scene.GetScenePresence(AttachedAvatar);