diff options
author | Melanie Thielker | 2008-10-11 23:47:35 +0000 |
---|---|---|
committer | Melanie Thielker | 2008-10-11 23:47:35 +0000 |
commit | 6f2d0773565039cf4318afe8f2f6f11772480d9b (patch) | |
tree | 3d0297bc0182a7d0f4bdca01824f8aa0d50d052f /OpenSim/Region/Environment | |
parent | The "About Landmark" code with the fake parcelIDs had a serious bug. (diff) | |
download | opensim-SC_OLD-6f2d0773565039cf4318afe8f2f6f11772480d9b.zip opensim-SC_OLD-6f2d0773565039cf4318afe8f2f6f11772480d9b.tar.gz opensim-SC_OLD-6f2d0773565039cf4318afe8f2f6f11772480d9b.tar.bz2 opensim-SC_OLD-6f2d0773565039cf4318afe8f2f6f11772480d9b.tar.xz |
Fix llSetPos to handle child prims correctly. This will fix linked
sliding doors
Diffstat (limited to 'OpenSim/Region/Environment')
-rw-r--r-- | OpenSim/Region/Environment/Scenes/SceneObjectPart.cs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs b/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs index f5cc680..f47e4d7 100644 --- a/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs +++ b/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs | |||
@@ -550,6 +550,17 @@ namespace OpenSim.Region.Environment.Scenes | |||
550 | // Ignore, and skip over. | 550 | // Ignore, and skip over. |
551 | //} | 551 | //} |
552 | //m_log.Info("[PART]: OFFSET:" + m_offsetPosition.ToString()); | 552 | //m_log.Info("[PART]: OFFSET:" + m_offsetPosition.ToString()); |
553 | |||
554 | if (_parentID != 0) | ||
555 | { | ||
556 | Vector3 resultingposition = GetWorldPosition(); | ||
557 | PhysActor.Position = new PhysicsVector(resultingposition.X, resultingposition.Y, resultingposition.Z); | ||
558 | Quaternion resultingrot = GetWorldRotation(); | ||
559 | PhysActor.Orientation = resultingrot; | ||
560 | |||
561 | // Tell the physics engines that this prim changed. | ||
562 | m_parentGroup.Scene.PhysicsScene.AddPhysicsActorTaint(PhysActor); | ||
563 | } | ||
553 | } | 564 | } |
554 | } | 565 | } |
555 | 566 | ||