mirror of
https://github.com/opensim/opensim.git
synced 2026-08-12 04:05:42 +08:00
Phase 1 of implementing a transfer permission. Overwrite libOMV's PermissionMask
with our own and add export permissions as well as a new definition for "All" as meaning "all conventional permissions" rather than "all possible permissions"
This commit is contained in:
@@ -40,6 +40,7 @@ using OpenSim.Framework;
|
||||
using OpenSim.Framework.Console;
|
||||
using pCampBot.Interfaces;
|
||||
using Timer = System.Timers.Timer;
|
||||
using PermissionMask = OpenSim.Framework.PermissionMask;
|
||||
|
||||
namespace pCampBot
|
||||
{
|
||||
@@ -362,7 +363,7 @@ namespace pCampBot
|
||||
asset.Encode();
|
||||
transid = Client.Assets.RequestUpload(asset,true);
|
||||
Client.Inventory.RequestCreateItem(clothfolder.UUID, "MyClothing" + i.ToString(), "MyClothing", AssetType.Clothing,
|
||||
transid, InventoryType.Wearable, asset.WearableType, PermissionMask.All, delegate(bool success, InventoryItem item)
|
||||
transid, InventoryType.Wearable, asset.WearableType, (OpenMetaverse.PermissionMask)PermissionMask.All, delegate(bool success, InventoryItem item)
|
||||
{
|
||||
if (success)
|
||||
{
|
||||
@@ -386,7 +387,7 @@ namespace pCampBot
|
||||
asset.Encode();
|
||||
transid = Client.Assets.RequestUpload(asset,true);
|
||||
Client.Inventory.RequestCreateItem(clothfolder.UUID, "MyBodyPart" + i.ToString(), "MyBodyPart", AssetType.Bodypart,
|
||||
transid, InventoryType.Wearable, asset.WearableType, PermissionMask.All, delegate(bool success, InventoryItem item)
|
||||
transid, InventoryType.Wearable, asset.WearableType, (OpenMetaverse.PermissionMask)PermissionMask.All, delegate(bool success, InventoryItem item)
|
||||
{
|
||||
if (success)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user