diff options
author | UbitUmarov | 2015-09-02 19:54:53 +0100 |
---|---|---|
committer | UbitUmarov | 2015-09-02 19:54:53 +0100 |
commit | a11edceb00b5b86f825bd957bdac9edb91f893dd (patch) | |
tree | c192eae26f3aadf365a66f32fc6d9ade2f0a0c61 /OpenSim/Region/CoreModules/Avatar/Attachments | |
parent | bad merge? (diff) | |
download | opensim-SC_OLD-a11edceb00b5b86f825bd957bdac9edb91f893dd.zip opensim-SC_OLD-a11edceb00b5b86f825bd957bdac9edb91f893dd.tar.gz opensim-SC_OLD-a11edceb00b5b86f825bd957bdac9edb91f893dd.tar.bz2 opensim-SC_OLD-a11edceb00b5b86f825bd957bdac9edb91f893dd.tar.xz |
seems to compile ( tests comented out)
Diffstat (limited to 'OpenSim/Region/CoreModules/Avatar/Attachments')
-rw-r--r-- | OpenSim/Region/CoreModules/Avatar/Attachments/AttachmentsModule.cs | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/OpenSim/Region/CoreModules/Avatar/Attachments/AttachmentsModule.cs b/OpenSim/Region/CoreModules/Avatar/Attachments/AttachmentsModule.cs index b24dc0c..92beed2 100644 --- a/OpenSim/Region/CoreModules/Avatar/Attachments/AttachmentsModule.cs +++ b/OpenSim/Region/CoreModules/Avatar/Attachments/AttachmentsModule.cs | |||
@@ -406,25 +406,8 @@ namespace OpenSim.Region.CoreModules.Avatar.Attachments | |||
406 | 406 | ||
407 | Dictionary<SceneObjectGroup, string> scriptStates = new Dictionary<SceneObjectGroup, string>(); | 407 | Dictionary<SceneObjectGroup, string> scriptStates = new Dictionary<SceneObjectGroup, string>(); |
408 | 408 | ||
409 | <<<<<<< HEAD | ||
410 | foreach (SceneObjectGroup so in attachments) | ||
411 | { | ||
412 | // Scripts MUST be snapshotted before the object is | ||
413 | // removed from the scene because doing otherwise will | ||
414 | // clobber the run flag | ||
415 | // This must be done outside the sp.AttachmentSyncLock so that there is no risk of a deadlock from | ||
416 | // scripts performing attachment operations at the same time. Getting object states stops the scripts. | ||
417 | scriptStates[so] = PrepareScriptInstanceForSave(so, false); | ||
418 | |||
419 | // m_log.DebugFormat( | ||
420 | // "[ATTACHMENTS MODULE]: For object {0} for {1} in {2} got saved state {3}", | ||
421 | // so.Name, sp.Name, m_scene.Name, scriptStates[so]); | ||
422 | } | ||
423 | 409 | ||
424 | lock (sp.AttachmentsSyncLock) | ||
425 | ======= | ||
426 | if (sp.PresenceType != PresenceType.Npc) | 410 | if (sp.PresenceType != PresenceType.Npc) |
427 | >>>>>>> avn/ubitvar | ||
428 | { | 411 | { |
429 | foreach (SceneObjectGroup so in attachments) | 412 | foreach (SceneObjectGroup so in attachments) |
430 | { | 413 | { |
@@ -477,18 +460,7 @@ namespace OpenSim.Region.CoreModules.Avatar.Attachments | |||
477 | if (!Enabled) | 460 | if (!Enabled) |
478 | return false; | 461 | return false; |
479 | 462 | ||
480 | <<<<<<< HEAD | ||
481 | group.DetachFromBackup(); | ||
482 | |||
483 | bool success = AttachObjectInternal(sp, group, attachmentPt, silent, addToInventory, false, append); | ||
484 | |||
485 | if (!success) | ||
486 | group.AttachToBackup(); | ||
487 | |||
488 | return success; | ||
489 | ======= | ||
490 | return AttachObjectInternal(sp, group, attachmentPt, silent, useAttachData, addToInventory, false, append); | 463 | return AttachObjectInternal(sp, group, attachmentPt, silent, useAttachData, addToInventory, false, append); |
491 | >>>>>>> avn/ubitvar | ||
492 | } | 464 | } |
493 | 465 | ||
494 | /// <summary> | 466 | /// <summary> |