Fixed bug in AvatarCreationModule, where during the cloning of a folder it would report it was unsuccessful if the folder was empty.

trunk
MW 2009-07-12 21:02:57 +00:00
parent 82dd4cf3c4
commit e5e6f4c6df
1 changed files with 5 additions and 0 deletions

View File

@ -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<InventoryFolderBase> subFolders = FindSubFolders(templateFolder.ID.Guid, templateFolders);
foreach (InventoryFolderBase subFolder in subFolders)