aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Environment/Scenes/InnerScene.cs
diff options
context:
space:
mode:
authorMelanie Thielker2008-10-04 16:58:34 +0000
committerMelanie Thielker2008-10-04 16:58:34 +0000
commit68c0393c518c9a82597e8cf753ea9cc6cc7ca91a (patch)
treec106351042e2d3fbef27e0a3927882c9d2f9e96e /OpenSim/Region/Environment/Scenes/InnerScene.cs
parentPrevent a new asset being created on every detach of an attachment (diff)
downloadopensim-SC_OLD-68c0393c518c9a82597e8cf753ea9cc6cc7ca91a.zip
opensim-SC_OLD-68c0393c518c9a82597e8cf753ea9cc6cc7ca91a.tar.gz
opensim-SC_OLD-68c0393c518c9a82597e8cf753ea9cc6cc7ca91a.tar.bz2
opensim-SC_OLD-68c0393c518c9a82597e8cf753ea9cc6cc7ca91a.tar.xz
Cause a request to a different attachment point to taint the attachment so
that the attachment point is saved even if nothing else changed
Diffstat (limited to 'OpenSim/Region/Environment/Scenes/InnerScene.cs')
-rw-r--r--OpenSim/Region/Environment/Scenes/InnerScene.cs6
1 files changed, 6 insertions, 0 deletions
diff --git a/OpenSim/Region/Environment/Scenes/InnerScene.cs b/OpenSim/Region/Environment/Scenes/InnerScene.cs
index ba14784..bded963 100644
--- a/OpenSim/Region/Environment/Scenes/InnerScene.cs
+++ b/OpenSim/Region/Environment/Scenes/InnerScene.cs
@@ -461,8 +461,14 @@ namespace OpenSim.Region.Environment.Scenes
461 461
462 if (objatt != null) 462 if (objatt != null)
463 { 463 {
464 bool tainted = false;
465 if (AttachmentPt != 0 && AttachmentPt != objatt.GetAttachmentPoint())
466 tainted = true;
467
464 AttachObject(remoteClient, objatt.LocalId, AttachmentPt, Quaternion.Identity, objatt.AbsolutePosition); 468 AttachObject(remoteClient, objatt.LocalId, AttachmentPt, Quaternion.Identity, objatt.AbsolutePosition);
465 objatt.ScheduleGroupForFullUpdate(); 469 objatt.ScheduleGroupForFullUpdate();
470 if (tainted)
471 objatt.HasGroupChanged = true;
466 } 472 }
467 return objatt; 473 return objatt;
468 } 474 }