diff options
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/ScenePresence.cs')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/ScenePresence.cs | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/OpenSim/Region/Framework/Scenes/ScenePresence.cs b/OpenSim/Region/Framework/Scenes/ScenePresence.cs index 7661f1e..6f16ff3 100644 --- a/OpenSim/Region/Framework/Scenes/ScenePresence.cs +++ b/OpenSim/Region/Framework/Scenes/ScenePresence.cs | |||
@@ -676,7 +676,8 @@ namespace OpenSim.Region.Framework.Scenes | |||
676 | 676 | ||
677 | UserAccount account = m_scene.UserAccountService.GetUserAccount(m_scene.RegionInfo.ScopeID, m_uuid); | 677 | UserAccount account = m_scene.UserAccountService.GetUserAccount(m_scene.RegionInfo.ScopeID, m_uuid); |
678 | 678 | ||
679 | m_userLevel = account.UserLevel; | 679 | if (account != null) |
680 | m_userLevel = account.UserLevel; | ||
680 | 681 | ||
681 | IGroupsModule gm = m_scene.RequestModuleInterface<IGroupsModule>(); | 682 | IGroupsModule gm = m_scene.RequestModuleInterface<IGroupsModule>(); |
682 | if (gm != null) | 683 | if (gm != null) |
@@ -3738,7 +3739,7 @@ namespace OpenSim.Region.Framework.Scenes | |||
3738 | { | 3739 | { |
3739 | if (null == m_appearance) | 3740 | if (null == m_appearance) |
3740 | { | 3741 | { |
3741 | m_log.WarnFormat("[ATTACHMENT] Appearance has not been initialized for agent {0}", UUID); | 3742 | m_log.WarnFormat("[ATTACHMENT]: Appearance has not been initialized for agent {0}", UUID); |
3742 | return; | 3743 | return; |
3743 | } | 3744 | } |
3744 | 3745 | ||
@@ -3762,12 +3763,12 @@ namespace OpenSim.Region.Framework.Scenes | |||
3762 | try | 3763 | try |
3763 | { | 3764 | { |
3764 | // Rez from inventory | 3765 | // Rez from inventory |
3765 | UUID asset = m_scene.RezSingleAttachment(ControllingClient, | 3766 | UUID asset |
3766 | itemID, (uint)p); | 3767 | = m_scene.AttachmentsModule.RezSingleAttachmentFromInventory(ControllingClient, itemID, (uint)p); |
3767 | |||
3768 | m_log.InfoFormat("[ATTACHMENT]: Rezzed attachment in point {0} from item {1} and asset {2} ({3})", | ||
3769 | p, itemID, assetID, asset); | ||
3770 | 3768 | ||
3769 | m_log.InfoFormat( | ||
3770 | "[ATTACHMENT]: Rezzed attachment in point {0} from item {1} and asset {2} ({3})", | ||
3771 | p, itemID, assetID, asset); | ||
3771 | } | 3772 | } |
3772 | catch (Exception e) | 3773 | catch (Exception e) |
3773 | { | 3774 | { |