bug fix: revert back check on creating link

avinationmerge
UbitUmarov 2014-10-04 03:43:20 +01:00
parent 94f42cef90
commit 4ae960a4f0
1 changed files with 4 additions and 4 deletions

View File

@ -1023,6 +1023,10 @@ namespace OpenSim.Region.Framework.Scenes
item.BasePermissions = baseMask;
item.CreationDate = creationDate;
// special AnimationSet case
if (item.InvType == (int)CustomInventoryType.AnimationSet)
AnimationSet.enforceItemPermitions(item,true);
if (AddInventoryItem(item))
{
remoteClient.SendInventoryItemCreateUpdate(item, transationID, callbackID);
@ -1063,10 +1067,6 @@ namespace OpenSim.Region.Framework.Scenes
if (!Permissions.CanCreateUserInventory(invType, remoteClient.AgentId))
return;
if (type != (sbyte)AssetType.Link || type != (sbyte)AssetType.LinkFolder)
return;
ScenePresence presence;
if (TryGetScenePresence(remoteClient.AgentId, out presence))
{