From e5e6f4c6dfd152383e559d10e318d51af0c8da08 Mon Sep 17 00:00:00 2001 From: MW Date: Sun, 12 Jul 2009 21:02:57 +0000 Subject: [PATCH] Fixed bug in AvatarCreationModule, where during the cloning of a folder it would report it was unsuccessful if the folder was empty. --- OpenSim/Grid/UserServer.Modules/AvatarCreationModule.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/OpenSim/Grid/UserServer.Modules/AvatarCreationModule.cs b/OpenSim/Grid/UserServer.Modules/AvatarCreationModule.cs index c44320382d..923b06c2ce 100644 --- a/OpenSim/Grid/UserServer.Modules/AvatarCreationModule.cs +++ b/OpenSim/Grid/UserServer.Modules/AvatarCreationModule.cs @@ -256,6 +256,11 @@ namespace OpenSim.Grid.UserServer.Modules } } } + else if ((templateItems != null) && (templateItems.Count == 0)) + { + // m_log.Info("[AvatarAppearance]Folder being cloned was empty"); + success = true; + } List subFolders = FindSubFolders(templateFolder.ID.Guid, templateFolders); foreach (InventoryFolderBase subFolder in subFolders)