diff options
Merge branch 'ubitwork' of ssh://3dhosting.de/var/git/careminster into ubitwork
Diffstat (limited to 'OpenSim/Region/Framework')
3 files changed, 50 insertions, 2 deletions
diff --git a/OpenSim/Region/Framework/Interfaces/IAvatarFactoryModule.cs b/OpenSim/Region/Framework/Interfaces/IAvatarFactoryModule.cs index 34aca33..d25c930 100644 --- a/OpenSim/Region/Framework/Interfaces/IAvatarFactoryModule.cs +++ b/OpenSim/Region/Framework/Interfaces/IAvatarFactoryModule.cs | |||
@@ -35,8 +35,8 @@ namespace OpenSim.Region.Framework.Interfaces | |||
35 | 35 | ||
36 | public interface IAvatarFactoryModule | 36 | public interface IAvatarFactoryModule |
37 | { | 37 | { |
38 | void SetAppearance(IScenePresence sp, AvatarAppearance appearance); | 38 | void SetAppearance(IScenePresence sp, AvatarAppearance appearance, WearableCacheItem[] cacheItems); |
39 | void SetAppearance(IScenePresence sp, Primitive.TextureEntry textureEntry, byte[] visualParams); | 39 | void SetAppearance(IScenePresence sp, Primitive.TextureEntry textureEntry, byte[] visualParams, WearableCacheItem[] cacheItems); |
40 | 40 | ||
41 | /// <summary> | 41 | /// <summary> |
42 | /// Send the appearance of an avatar to others in the scene. | 42 | /// Send the appearance of an avatar to others in the scene. |
@@ -52,6 +52,8 @@ namespace OpenSim.Region.Framework.Interfaces | |||
52 | /// <returns>An empty list if this agent has no baked textures (e.g. because it's a child agent)</returns> | 52 | /// <returns>An empty list if this agent has no baked textures (e.g. because it's a child agent)</returns> |
53 | Dictionary<BakeType, Primitive.TextureEntryFace> GetBakedTextureFaces(UUID agentId); | 53 | Dictionary<BakeType, Primitive.TextureEntryFace> GetBakedTextureFaces(UUID agentId); |
54 | 54 | ||
55 | |||
56 | WearableCacheItem[] GetCachedItems(UUID agentId); | ||
55 | /// <summary> | 57 | /// <summary> |
56 | /// Save the baked textures for the given agent permanently in the asset database. | 58 | /// Save the baked textures for the given agent permanently in the asset database. |
57 | /// </summary> | 59 | /// </summary> |
diff --git a/OpenSim/Region/Framework/Interfaces/IBakedTextureModule.cs b/OpenSim/Region/Framework/Interfaces/IBakedTextureModule.cs new file mode 100644 index 0000000..d63898a --- /dev/null +++ b/OpenSim/Region/Framework/Interfaces/IBakedTextureModule.cs | |||
@@ -0,0 +1,19 @@ | |||
1 | //////////////////////////////////////////////////////////////// | ||
2 | // | ||
3 | // (c) 2009, 2010 Careminster Limited and Melanie Thielker | ||
4 | // | ||
5 | // All rights reserved | ||
6 | // | ||
7 | using System; | ||
8 | using Nini.Config; | ||
9 | using OpenSim.Framework; | ||
10 | using OpenMetaverse; | ||
11 | |||
12 | namespace OpenSim.Services.Interfaces | ||
13 | { | ||
14 | public interface IBakedTextureModule | ||
15 | { | ||
16 | AssetBase[] Get(UUID id); | ||
17 | void Store(UUID id, AssetBase[] data); | ||
18 | } | ||
19 | } | ||
diff --git a/OpenSim/Region/Framework/Scenes/ScenePresence.cs b/OpenSim/Region/Framework/Scenes/ScenePresence.cs index 646e0e2..85f4ee5 100644 --- a/OpenSim/Region/Framework/Scenes/ScenePresence.cs +++ b/OpenSim/Region/Framework/Scenes/ScenePresence.cs | |||
@@ -925,6 +925,33 @@ namespace OpenSim.Region.Framework.Scenes | |||
925 | 925 | ||
926 | m_scene.EventManager.TriggerSetRootAgentScene(m_uuid, m_scene); | 926 | m_scene.EventManager.TriggerSetRootAgentScene(m_uuid, m_scene); |
927 | 927 | ||
928 | UUID groupUUID = UUID.Zero; | ||
929 | string GroupName = string.Empty; | ||
930 | ulong groupPowers = 0; | ||
931 | |||
932 | // ---------------------------------- | ||
933 | // Previous Agent Difference - AGNI sends an unsolicited AgentDataUpdate upon root agent status | ||
934 | try | ||
935 | { | ||
936 | if (gm != null) | ||
937 | { | ||
938 | groupUUID = ControllingClient.ActiveGroupId; | ||
939 | GroupRecord record = gm.GetGroupRecord(groupUUID); | ||
940 | if (record != null) | ||
941 | GroupName = record.GroupName; | ||
942 | GroupMembershipData groupMembershipData = gm.GetMembershipData(groupUUID, m_uuid); | ||
943 | if (groupMembershipData != null) | ||
944 | groupPowers = groupMembershipData.GroupPowers; | ||
945 | } | ||
946 | ControllingClient.SendAgentDataUpdate(m_uuid, groupUUID, Firstname, Lastname, groupPowers, GroupName, | ||
947 | Grouptitle); | ||
948 | } | ||
949 | catch (Exception e) | ||
950 | { | ||
951 | m_log.Debug("[AGENTUPDATE]: " + e.ToString()); | ||
952 | } | ||
953 | // ------------------------------------ | ||
954 | |||
928 | if (ParentID == 0) | 955 | if (ParentID == 0) |
929 | { | 956 | { |
930 | // Moved this from SendInitialData to ensure that Appearance is initialized | 957 | // Moved this from SendInitialData to ensure that Appearance is initialized |