compact the trivial te case, a more complete one may be needed even beening heavy

This commit is contained in:
UbitUmarov
2019-03-24 00:35:30 +00:00
parent 33986aea5e
commit 027750e98f
2 changed files with 21 additions and 7 deletions

View File

@@ -1012,7 +1012,15 @@ namespace OpenSim.Region.ClientStack.Linden
textureEntry.FaceTextures[face] = f;
}
pbs.TextureEntry = textureEntry.GetBytes();
if(face_list.Count > 0)
{
int last = face_list.Count - 1;
// we do need a better te compacting code
textureEntry.DefaultTexture = textureEntry.FaceTextures[last];
textureEntry.FaceTextures[last] = null;
pbs.TextureEntry = textureEntry.GetBytes(last);
}
Vector3 position = inner_instance_list["position"].AsVector3();
Quaternion rotation = inner_instance_list["rotation"].AsQuaternion();