From 027750e98ff40b87d774dc6ad4700969b3714087 Mon Sep 17 00:00:00 2001 From: UbitUmarov Date: Sun, 24 Mar 2019 00:35:30 +0000 Subject: compact the trivial te case, a more complete one may be needed even beening heavy --- .../Region/ClientStack/Linden/Caps/BunchOfCaps/BunchOfCaps.cs | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'OpenSim/Region/ClientStack/Linden/Caps/BunchOfCaps') diff --git a/OpenSim/Region/ClientStack/Linden/Caps/BunchOfCaps/BunchOfCaps.cs b/OpenSim/Region/ClientStack/Linden/Caps/BunchOfCaps/BunchOfCaps.cs index 92f5a2c..16178e6 100644 --- a/OpenSim/Region/ClientStack/Linden/Caps/BunchOfCaps/BunchOfCaps.cs +++ b/OpenSim/Region/ClientStack/Linden/Caps/BunchOfCaps/BunchOfCaps.cs @@ -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(); -- cgit v1.1