mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 08:55:56 +08:00
Fix llSetPos to handle child prims correctly. This will fix linked
sliding doors
This commit is contained in:
@@ -550,6 +550,17 @@ namespace OpenSim.Region.Environment.Scenes
|
||||
// Ignore, and skip over.
|
||||
//}
|
||||
//m_log.Info("[PART]: OFFSET:" + m_offsetPosition.ToString());
|
||||
|
||||
if (_parentID != 0)
|
||||
{
|
||||
Vector3 resultingposition = GetWorldPosition();
|
||||
PhysActor.Position = new PhysicsVector(resultingposition.X, resultingposition.Y, resultingposition.Z);
|
||||
Quaternion resultingrot = GetWorldRotation();
|
||||
PhysActor.Orientation = resultingrot;
|
||||
|
||||
// Tell the physics engines that this prim changed.
|
||||
m_parentGroup.Scene.PhysicsScene.AddPhysicsActorTaint(PhysActor);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user