refactor: Push all part resize code down into SceneObjectPart.Resize()

This commit is contained in:
Justin Clark-Casey (justincc)
2011-07-16 04:22:57 +01:00
parent 4b5a6b655b
commit 2b68ac4ba3
4 changed files with 32 additions and 56 deletions

View File

@@ -1217,12 +1217,13 @@ namespace OpenSim.Region.Framework.Scenes
/// <param name="remoteClient"></param>
protected internal void UpdatePrimScale(uint localID, Vector3 scale, IClientAPI remoteClient)
{
SceneObjectGroup group = GetGroupByPrim(localID);
if (group != null)
SceneObjectPart part = GetSceneObjectPart(localID);
if (part != null)
{
if (m_parentScene.Permissions.CanEditObject(group.UUID, remoteClient.AgentId))
if (m_parentScene.Permissions.CanEditObject(part.ParentGroup.UUID, remoteClient.AgentId))
{
group.Resize(scale, localID);
part.Resize(scale);
}
}
}