aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region
diff options
context:
space:
mode:
authoronefang2019-07-24 18:27:05 +1000
committeronefang2019-07-24 18:27:05 +1000
commit55262c8e1c6338662e0cff6563fe500531edfe32 (patch)
tree80bac107c3effaef8e2b5db07e6dbe4aa9084751 /OpenSim/Region
parentMake the installation more robust. (diff)
downloadopensim-SC-55262c8e1c6338662e0cff6563fe500531edfe32.zip
opensim-SC-55262c8e1c6338662e0cff6563fe500531edfe32.tar.gz
opensim-SC-55262c8e1c6338662e0cff6563fe500531edfe32.tar.bz2
opensim-SC-55262c8e1c6338662e0cff6563fe500531edfe32.tar.xz
Allow sitting on attachments, and attaching tings with people sitting on them.
Now we have to fix all the viewers that though it would be great to enshrine this bug in viewer side.
Diffstat (limited to 'OpenSim/Region')
-rw-r--r--OpenSim/Region/CoreModules/Avatar/Attachments/AttachmentsModule.cs18
-rw-r--r--OpenSim/Region/Framework/Scenes/ScenePresence.cs22
2 files changed, 20 insertions, 20 deletions
diff --git a/OpenSim/Region/CoreModules/Avatar/Attachments/AttachmentsModule.cs b/OpenSim/Region/CoreModules/Avatar/Attachments/AttachmentsModule.cs
index 4afac28..f99cf4c 100644
--- a/OpenSim/Region/CoreModules/Avatar/Attachments/AttachmentsModule.cs
+++ b/OpenSim/Region/CoreModules/Avatar/Attachments/AttachmentsModule.cs
@@ -485,15 +485,15 @@ namespace OpenSim.Region.CoreModules.Avatar.Attachments
485// group.Name, group.LocalId, sp.Name, attachmentPt, silent); 485// group.Name, group.LocalId, sp.Name, attachmentPt, silent);
486 486
487 487
488 if (group.GetSittingAvatarsCount() != 0) 488//// if (group.GetSittingAvatarsCount() != 0)
489 { 489//// {
490 if (DebugLevel > 0) 490//// if (DebugLevel > 0)
491 m_log.WarnFormat( 491//// m_log.WarnFormat(
492 "[ATTACHMENTS MODULE]: Ignoring request to attach {0} {1} to {2} on {3} since {4} avatars are still sitting on it", 492//// "[ATTACHMENTS MODULE]: Ignoring request to attach {0} {1} to {2} on {3} since {4} avatars are still sitting on it",
493 group.Name, group.LocalId, sp.Name, attachmentPt, group.GetSittingAvatarsCount()); 493//// group.Name, group.LocalId, sp.Name, attachmentPt, group.GetSittingAvatarsCount());
494 494////
495 return false; 495//// return false;
496 } 496//// }
497 497
498 List<SceneObjectGroup> attachments = sp.GetAttachments(attachmentPt); 498 List<SceneObjectGroup> attachments = sp.GetAttachments(attachmentPt);
499 if (attachments.Contains(group)) 499 if (attachments.Contains(group))
diff --git a/OpenSim/Region/Framework/Scenes/ScenePresence.cs b/OpenSim/Region/Framework/Scenes/ScenePresence.cs
index ff8d2fe..6aa5047 100644
--- a/OpenSim/Region/Framework/Scenes/ScenePresence.cs
+++ b/OpenSim/Region/Framework/Scenes/ScenePresence.cs
@@ -3419,11 +3419,11 @@ else
3419 SendSitResponse(targetID, offset, Quaternion.Identity); 3419 SendSitResponse(targetID, offset, Quaternion.Identity);
3420 } 3420 }
3421 3421
3422 // returns false if does not suport so older sit can be tried 3422 // returns false if does not support so older sit can be tried
3423 public bool PhysicsSit(SceneObjectPart part, Vector3 offset) 3423 public bool PhysicsSit(SceneObjectPart part, Vector3 offset)
3424 { 3424 {
3425 if (part == null || part.ParentGroup.IsAttachment) 3425//// if (part == null || part.ParentGroup.IsAttachment)
3426 return true; 3426//// return true;
3427 3427
3428 if ( m_scene.PhysicsScene == null) 3428 if ( m_scene.PhysicsScene == null)
3429 return false; 3429 return false;
@@ -3549,14 +3549,14 @@ else
3549 3549
3550 if (part != null) 3550 if (part != null)
3551 { 3551 {
3552 if (part.ParentGroup.IsAttachment) 3552//// if (part.ParentGroup.IsAttachment)
3553 { 3553//// {
3554 m_log.WarnFormat( 3554//// m_log.WarnFormat(
3555 "[SCENE PRESENCE]: Avatar {0} tried to sit on part {1} from object {2} in {3} but this is an attachment for avatar id {4}", 3555//// "[SCENE PRESENCE]: Avatar {0} tried to sit on part {1} from object {2} in {3} but this is an attachment for avatar id {4}",
3556 Name, part.Name, part.ParentGroup.Name, Scene.Name, part.ParentGroup.AttachedAvatar); 3556//// Name, part.Name, part.ParentGroup.Name, Scene.Name, part.ParentGroup.AttachedAvatar);
3557 3557////
3558 return; 3558//// return;
3559 } 3559//// }
3560 3560
3561 if (part.SitTargetAvatar == UUID) 3561 if (part.SitTargetAvatar == UUID)
3562 { 3562 {