aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Framework/Scenes/SceneGraph.cs
diff options
context:
space:
mode:
authorJustin Clark-Casey (justincc)2011-07-16 04:22:57 +0100
committerJustin Clark-Casey (justincc)2011-07-16 04:22:57 +0100
commit2b68ac4ba31205a55f53f1b69629dd9ebbd66ef6 (patch)
tree36c44de8244635be032a95d3a2a67f48e68a9b05 /OpenSim/Region/Framework/Scenes/SceneGraph.cs
parentadd test for resizing one part in a group (diff)
downloadopensim-SC_OLD-2b68ac4ba31205a55f53f1b69629dd9ebbd66ef6.zip
opensim-SC_OLD-2b68ac4ba31205a55f53f1b69629dd9ebbd66ef6.tar.gz
opensim-SC_OLD-2b68ac4ba31205a55f53f1b69629dd9ebbd66ef6.tar.bz2
opensim-SC_OLD-2b68ac4ba31205a55f53f1b69629dd9ebbd66ef6.tar.xz
refactor: Push all part resize code down into SceneObjectPart.Resize()
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/SceneGraph.cs')
-rw-r--r--OpenSim/Region/Framework/Scenes/SceneGraph.cs9
1 files changed, 5 insertions, 4 deletions
diff --git a/OpenSim/Region/Framework/Scenes/SceneGraph.cs b/OpenSim/Region/Framework/Scenes/SceneGraph.cs
index df6908a..00d25c2 100644
--- a/OpenSim/Region/Framework/Scenes/SceneGraph.cs
+++ b/OpenSim/Region/Framework/Scenes/SceneGraph.cs
@@ -1217,12 +1217,13 @@ namespace OpenSim.Region.Framework.Scenes
1217 /// <param name="remoteClient"></param> 1217 /// <param name="remoteClient"></param>
1218 protected internal void UpdatePrimScale(uint localID, Vector3 scale, IClientAPI remoteClient) 1218 protected internal void UpdatePrimScale(uint localID, Vector3 scale, IClientAPI remoteClient)
1219 { 1219 {
1220 SceneObjectGroup group = GetGroupByPrim(localID); 1220 SceneObjectPart part = GetSceneObjectPart(localID);
1221 if (group != null) 1221
1222 if (part != null)
1222 { 1223 {
1223 if (m_parentScene.Permissions.CanEditObject(group.UUID, remoteClient.AgentId)) 1224 if (m_parentScene.Permissions.CanEditObject(part.ParentGroup.UUID, remoteClient.AgentId))
1224 { 1225 {
1225 group.Resize(scale, localID); 1226 part.Resize(scale);
1226 } 1227 }
1227 } 1228 }
1228 } 1229 }