mirror of
https://github.com/opensim/opensim.git
synced 2026-08-06 17:32:42 +08:00
some cleanup
This commit is contained in:
@@ -1604,13 +1604,16 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
/// <param name="remoteClient"></param>
|
||||
protected internal void UpdatePrimTexture(uint localID, byte[] texture, IClientAPI remoteClient)
|
||||
{
|
||||
SceneObjectGroup group = GetGroupByPrim(localID);
|
||||
SceneObjectPart part = GetSceneObjectPart(localID);
|
||||
if(part == null)
|
||||
return;
|
||||
|
||||
if (group != null)
|
||||
SceneObjectGroup group = part.ParentGroup;
|
||||
if (group != null && !group.IsDeleted)
|
||||
{
|
||||
if (m_parentScene.Permissions.CanEditObject(group, remoteClient))
|
||||
{
|
||||
group.UpdateTextureEntry(localID, texture);
|
||||
part.UpdateTextureEntry(texture);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user