add default eyes

Unlike other body parts, there doesn't appear to be a fixed uuid for this.  Maybe these uuids are just a holdover from viewer 1
viewer-2-initial-appearance
Justin Clark-Casey (justincc) 2011-01-08 00:57:07 +00:00
parent d075b1e52f
commit 6626834c6b
3 changed files with 47 additions and 1 deletions

View File

@ -173,7 +173,19 @@ namespace OpenSim.Services.InventoryService
defaultHair.AssetID = AvatarWearable.DEFAULT_HAIR_ASSET;
defaultHair.Folder = bodypartFolder.ID;
defaultHair.CreatorId = UUID.Zero.ToString();
AddItem(defaultHair);
AddItem(defaultHair);
InventoryItemBase defaultEyes = new InventoryItemBase();
defaultEyes.Name = "Default eyes";
defaultEyes.Description = "Default eyes description";
defaultEyes.AssetType = (int)AssetType.Bodypart;
defaultEyes.InvType = (int)InventoryType.Wearable;
defaultEyes.Flags = (uint)WearableType.Eyes;
defaultEyes.ID = UUID.Random();
defaultEyes.AssetID = UUID.Parse("6522e74d-1660-4e7f-b601-6f48c1659a77");
defaultEyes.Folder = bodypartFolder.ID;
defaultEyes.CreatorId = UUID.Zero.ToString();
AddItem(defaultEyes);
return result;
}

View File

@ -34,6 +34,14 @@
<Key Name="assetType" Value="13" />
<Key Name="fileName" Value="base_shape.dat"/>
</Section>
<Section Name="Eyes">
<Key Name="assetID" Value="6522e74d-1660-4e7f-b601-6f48c1659a77"/>
<Key Name="name" Value="Eyes"/>
<Key Name="assetType" Value="13"/>
<Key Name="fileName" Value="base_eyes.dat"/>
</Section>
<!--
<Section Name="Jim Shape">
<Key Name="assetID" Value="66c41e39-38f9-f75a-024e-585989bfab74"/>

View File

@ -0,0 +1,26 @@
LLWearable version 22
New Eyes
permissions 0
{
base_mask 7fffffff
owner_mask 7fffffff
group_mask 00000000
everyone_mask 00000000
next_owner_mask 00082000
creator_id 138e881b-35af-4190-b0cf-55f8301e0095
owner_id 138e881b-35af-4190-b0cf-55f8301e0095
last_owner_id 00000000-0000-0000-0000-000000000000
group_id 00000000-0000-0000-0000-000000000000
}
sale_info 0
{
sale_type not
sale_price 10
}
type 3
parameters 2
98 0
99 0
textures 1
3 6522e74d-1660-4e7f-b601-6f48c1659a77