diff options
author | Melanie Thielker | 2008-10-03 12:00:13 +0000 |
---|---|---|
committer | Melanie Thielker | 2008-10-03 12:00:13 +0000 |
commit | 7f007d8ed056359d1e391cb73d9ff5c3b6852a26 (patch) | |
tree | 3241b8ea7d97fb9b1ca094217172d7f38cb75b2d /OpenSim/Region/Environment/Scenes/InnerScene.cs | |
parent | * EventQueueGet is now working. (diff) | |
download | opensim-SC-7f007d8ed056359d1e391cb73d9ff5c3b6852a26.zip opensim-SC-7f007d8ed056359d1e391cb73d9ff5c3b6852a26.tar.gz opensim-SC-7f007d8ed056359d1e391cb73d9ff5c3b6852a26.tar.bz2 opensim-SC-7f007d8ed056359d1e391cb73d9ff5c3b6852a26.tar.xz |
Mantis #1360
Thank you, idb, for a patch to implement the packet and plumbing for
the material settings.
Diffstat (limited to 'OpenSim/Region/Environment/Scenes/InnerScene.cs')
-rw-r--r-- | OpenSim/Region/Environment/Scenes/InnerScene.cs | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/OpenSim/Region/Environment/Scenes/InnerScene.cs b/OpenSim/Region/Environment/Scenes/InnerScene.cs index 3be1592..d63544a 100644 --- a/OpenSim/Region/Environment/Scenes/InnerScene.cs +++ b/OpenSim/Region/Environment/Scenes/InnerScene.cs | |||
@@ -1258,7 +1258,19 @@ namespace OpenSim.Region.Environment.Scenes | |||
1258 | } | 1258 | } |
1259 | } | 1259 | } |
1260 | 1260 | ||
1261 | 1261 | protected internal void PrimMaterial(IClientAPI remoteClient, uint primLocalID, string material) | |
1262 | { | ||
1263 | SceneObjectGroup group = GetGroupByPrim(primLocalID); | ||
1264 | if (group != null) | ||
1265 | { | ||
1266 | if (m_parentScene.ExternalChecks.ExternalChecksCanEditObject(group.UUID, remoteClient.AgentId)) | ||
1267 | { | ||
1268 | SceneObjectPart part = m_parentScene.GetSceneObjectPart(primLocalID); | ||
1269 | part.Material = Convert.ToByte(material); | ||
1270 | group.HasGroupChanged = true; | ||
1271 | } | ||
1272 | } | ||
1273 | } | ||
1262 | 1274 | ||
1263 | protected internal void UpdateExtraParam(UUID agentID, uint primLocalID, ushort type, bool inUse, byte[] data) | 1275 | protected internal void UpdateExtraParam(UUID agentID, uint primLocalID, ushort type, bool inUse, byte[] data) |
1264 | { | 1276 | { |