Merge branch 'sunshine' of git://github.com/Shyotl/SingularityViewer
This commit is contained in:
@@ -342,15 +342,6 @@ void LLInventoryItem::copyItem(const LLInventoryItem* other)
|
||||
mCreationDate = other->mCreationDate;
|
||||
}
|
||||
|
||||
// As a constructor alternative, the clone() method works like a
|
||||
// copy constructor, but gens a new UUID.
|
||||
void LLInventoryItem::cloneItem(LLPointer<LLInventoryItem>& newitem) const
|
||||
{
|
||||
newitem = new LLInventoryItem;
|
||||
newitem->copyItem(this);
|
||||
newitem->mUUID.generate();
|
||||
}
|
||||
|
||||
// If this is a linked item, then the UUID of the base object is
|
||||
// this item's assetID.
|
||||
// virtual
|
||||
@@ -390,6 +381,11 @@ const std::string& LLInventoryItem::getDescription() const
|
||||
return mDescription;
|
||||
}
|
||||
|
||||
const std::string& LLInventoryItem::getActualDescription() const
|
||||
{
|
||||
return mDescription;
|
||||
}
|
||||
|
||||
time_t LLInventoryItem::getCreationDate() const
|
||||
{
|
||||
return mCreationDate;
|
||||
@@ -1632,36 +1628,6 @@ LLSD ll_create_sd_from_inventory_item(LLPointer<LLInventoryItem> item)
|
||||
return rv;
|
||||
}
|
||||
|
||||
LLPointer<LLInventoryItem> ll_create_item_from_sd(const LLSD& sd_item)
|
||||
{
|
||||
LLPointer<LLInventoryItem> rv = new LLInventoryItem;
|
||||
rv->setUUID(sd_item[INV_ITEM_ID_LABEL].asUUID());
|
||||
rv->setParent(sd_item[INV_PARENT_ID_LABEL].asUUID());
|
||||
rv->rename(sd_item[INV_NAME_LABEL].asString());
|
||||
rv->setType(
|
||||
LLAssetType::lookup(sd_item[INV_ASSET_TYPE_LABEL].asString()));
|
||||
if (sd_item.has("shadow_id"))
|
||||
{
|
||||
LLUUID asset_id = sd_item["shadow_id"];
|
||||
LLXORCipher cipher(MAGIC_ID.mData, UUID_BYTES);
|
||||
cipher.decrypt(asset_id.mData, UUID_BYTES);
|
||||
rv->setAssetUUID(asset_id);
|
||||
}
|
||||
if (sd_item.has(INV_ASSET_ID_LABEL))
|
||||
{
|
||||
rv->setAssetUUID(sd_item[INV_ASSET_ID_LABEL].asUUID());
|
||||
}
|
||||
rv->setDescription(sd_item[INV_DESC_LABEL].asString());
|
||||
rv->setSaleInfo(ll_sale_info_from_sd(sd_item[INV_SALE_INFO_LABEL]));
|
||||
rv->setPermissions(ll_permissions_from_sd(sd_item[INV_PERMISSIONS_LABEL]));
|
||||
rv->setInventoryType(
|
||||
LLInventoryType::lookup(
|
||||
sd_item[INV_INVENTORY_TYPE_LABEL].asString()));
|
||||
rv->setFlags((U32)(sd_item[INV_FLAGS_LABEL].asInteger()));
|
||||
rv->setCreationDate(sd_item[INV_CREATION_DATE_LABEL].asInteger());
|
||||
return rv;
|
||||
}
|
||||
|
||||
LLSD ll_create_sd_from_inventory_category(LLPointer<LLInventoryCategory> cat)
|
||||
{
|
||||
LLSD rv;
|
||||
|
||||
@@ -54,7 +54,6 @@ public:
|
||||
// Initialization
|
||||
//--------------------------------------------------------------------
|
||||
public:
|
||||
MEM_TYPE_NEW(LLMemType::MTYPE_INVENTORY);
|
||||
LLInventoryObject();
|
||||
LLInventoryObject(const LLUUID& uuid,
|
||||
const LLUUID& parent_uuid,
|
||||
@@ -129,7 +128,6 @@ public:
|
||||
// Initialization
|
||||
//--------------------------------------------------------------------
|
||||
public:
|
||||
MEM_TYPE_NEW(LLMemType::MTYPE_INVENTORY);
|
||||
LLInventoryItem(const LLUUID& uuid,
|
||||
const LLUUID& parent_uuid,
|
||||
const LLPermissions& permissions,
|
||||
@@ -148,11 +146,6 @@ public:
|
||||
LLInventoryItem(const LLInventoryItem* other);
|
||||
virtual void copyItem(const LLInventoryItem* other); // LLRefCount requires custom copy
|
||||
void generateUUID() { mUUID.generate(); }
|
||||
|
||||
// As a constructor alternative, the clone() method works like a
|
||||
// copy constructor, but gens a new UUID.
|
||||
// It is up to the caller to delete (unref) the item.
|
||||
virtual void cloneItem(LLPointer<LLInventoryItem>& newitem) const;
|
||||
protected:
|
||||
~LLInventoryItem(); // ref counted
|
||||
|
||||
@@ -165,6 +158,7 @@ public:
|
||||
virtual const LLUUID& getCreatorUUID() const;
|
||||
virtual const LLUUID& getAssetUUID() const;
|
||||
virtual const std::string& getDescription() const;
|
||||
virtual const std::string& getActualDescription() const; // Does not follow links
|
||||
virtual const LLSaleInfo& getSaleInfo() const;
|
||||
virtual LLInventoryType::EType getInventoryType() const;
|
||||
virtual U32 getFlags() const;
|
||||
@@ -247,7 +241,6 @@ public:
|
||||
// Initialization
|
||||
//--------------------------------------------------------------------
|
||||
public:
|
||||
MEM_TYPE_NEW(LLMemType::MTYPE_INVENTORY);
|
||||
LLInventoryCategory(const LLUUID& uuid, const LLUUID& parent_uuid,
|
||||
LLFolderType::EType preferred_type,
|
||||
const std::string& name);
|
||||
@@ -297,7 +290,6 @@ protected:
|
||||
// item, appropriate for serialization.
|
||||
//-----------------------------------------------------------------------------
|
||||
LLSD ll_create_sd_from_inventory_item(LLPointer<LLInventoryItem> item);
|
||||
LLPointer<LLInventoryItem> ll_create_item_from_sd(const LLSD& sd_item);
|
||||
LLSD ll_create_sd_from_inventory_category(LLPointer<LLInventoryCategory> cat);
|
||||
LLPointer<LLInventoryCategory> ll_create_category_from_sd(const LLSD& sd_cat);
|
||||
|
||||
|
||||
@@ -206,7 +206,7 @@ void LLParcel::init(const LLUUID &owner_id,
|
||||
mAABBMin.setVec(SOME_BIG_NUMBER, SOME_BIG_NUMBER, SOME_BIG_NUMBER);
|
||||
mAABBMax.setVec(SOME_BIG_NEG_NUMBER, SOME_BIG_NEG_NUMBER, SOME_BIG_NEG_NUMBER);
|
||||
|
||||
mLocalID = 0;
|
||||
mLocalID = INVALID_PARCEL_ID;
|
||||
|
||||
//mSimWidePrimCorrection = 0;
|
||||
setMaxPrimCapacity((S32)(sim_object_limit * area / (F32)(REGION_WIDTH_METERS * REGION_WIDTH_METERS)));
|
||||
|
||||
@@ -103,6 +103,7 @@ const U32 RT_OTHER = 0x1 << 3;
|
||||
const U32 RT_LIST = 0x1 << 4;
|
||||
const U32 RT_SELL = 0x1 << 5;
|
||||
|
||||
const S32 INVALID_PARCEL_ID = -1;
|
||||
|
||||
// Timeouts for parcels
|
||||
// default is 21 days * 24h/d * 60m/h * 60s/m *1000000 usec/s = 1814400000000
|
||||
|
||||
Reference in New Issue
Block a user