Fix prim linking bug, Manis #14
parent
0020afaf67
commit
7cd44c1a81
|
@ -513,18 +513,24 @@ namespace OpenSim.Region.Framework.Scenes
|
||||||
{
|
{
|
||||||
// If this is a linkset, we don't want the physics engine mucking up our group position here.
|
// If this is a linkset, we don't want the physics engine mucking up our group position here.
|
||||||
PhysicsActor actor = PhysActor;
|
PhysicsActor actor = PhysActor;
|
||||||
|
|
||||||
|
if (actor != null && _parentID == 0)
|
||||||
|
{
|
||||||
|
m_groupPosition = actor.Position;
|
||||||
|
}
|
||||||
|
/*
|
||||||
if (actor != null)
|
if (actor != null)
|
||||||
{
|
{
|
||||||
if (_parentID == 0)
|
if (_parentID == 0)
|
||||||
{
|
{
|
||||||
m_groupPosition = actor.Position;
|
m_groupPosition = actor.Position;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
m_groupPosition = ParentGroup.AbsolutePosition; // KF+Casper Update Child prims too!
|
m_groupPosition = ParentGroup.AbsolutePosition; // KF+Casper Update Child prims too!
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
if (IsAttachment)
|
if (IsAttachment)
|
||||||
{
|
{
|
||||||
ScenePresence sp = m_parentGroup.Scene.GetScenePresence(AttachedAvatar);
|
ScenePresence sp = m_parentGroup.Scene.GetScenePresence(AttachedAvatar);
|
||||||
|
|
Loading…
Reference in New Issue