Fix the fix. Child prims were failing to load.
parent
6f2d077356
commit
acce65457c
|
@ -551,15 +551,18 @@ namespace OpenSim.Region.Environment.Scenes
|
||||||
//}
|
//}
|
||||||
//m_log.Info("[PART]: OFFSET:" + m_offsetPosition.ToString());
|
//m_log.Info("[PART]: OFFSET:" + m_offsetPosition.ToString());
|
||||||
|
|
||||||
if (_parentID != 0)
|
if (ParentGroup != null && ParentGroup.RootPart != null)
|
||||||
{
|
{
|
||||||
Vector3 resultingposition = GetWorldPosition();
|
if (_parentID != 0)
|
||||||
PhysActor.Position = new PhysicsVector(resultingposition.X, resultingposition.Y, resultingposition.Z);
|
{
|
||||||
Quaternion resultingrot = GetWorldRotation();
|
Vector3 resultingposition = GetWorldPosition();
|
||||||
PhysActor.Orientation = resultingrot;
|
PhysActor.Position = new PhysicsVector(resultingposition.X, resultingposition.Y, resultingposition.Z);
|
||||||
|
Quaternion resultingrot = GetWorldRotation();
|
||||||
|
PhysActor.Orientation = resultingrot;
|
||||||
|
|
||||||
// Tell the physics engines that this prim changed.
|
// Tell the physics engines that this prim changed.
|
||||||
m_parentGroup.Scene.PhysicsScene.AddPhysicsActorTaint(PhysActor);
|
m_parentGroup.Scene.PhysicsScene.AddPhysicsActorTaint(PhysActor);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue