diff options
author | UbitUmarov | 2019-03-24 00:35:30 +0000 |
---|---|---|
committer | UbitUmarov | 2019-03-24 00:35:30 +0000 |
commit | 027750e98ff40b87d774dc6ad4700969b3714087 (patch) | |
tree | d2f95272dd7e8d48fbbb06c8341b8de104a36224 /OpenSim/Region/ClientStack/Linden/Caps/BunchOfCaps | |
parent | mantis 8506: parse highlod mesh and compare its number of prim faces to the n... (diff) | |
download | opensim-SC-027750e98ff40b87d774dc6ad4700969b3714087.zip opensim-SC-027750e98ff40b87d774dc6ad4700969b3714087.tar.gz opensim-SC-027750e98ff40b87d774dc6ad4700969b3714087.tar.bz2 opensim-SC-027750e98ff40b87d774dc6ad4700969b3714087.tar.xz |
compact the trivial te case, a more complete one may be needed even beening heavy
Diffstat (limited to 'OpenSim/Region/ClientStack/Linden/Caps/BunchOfCaps')
-rw-r--r-- | OpenSim/Region/ClientStack/Linden/Caps/BunchOfCaps/BunchOfCaps.cs | 10 |
1 files changed, 9 insertions, 1 deletions
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 | |||
1012 | 1012 | ||
1013 | textureEntry.FaceTextures[face] = f; | 1013 | textureEntry.FaceTextures[face] = f; |
1014 | } | 1014 | } |
1015 | pbs.TextureEntry = textureEntry.GetBytes(); | 1015 | |
1016 | if(face_list.Count > 0) | ||
1017 | { | ||
1018 | int last = face_list.Count - 1; | ||
1019 | // we do need a better te compacting code | ||
1020 | textureEntry.DefaultTexture = textureEntry.FaceTextures[last]; | ||
1021 | textureEntry.FaceTextures[last] = null; | ||
1022 | pbs.TextureEntry = textureEntry.GetBytes(last); | ||
1023 | } | ||
1016 | 1024 | ||
1017 | Vector3 position = inner_instance_list["position"].AsVector3(); | 1025 | Vector3 position = inner_instance_list["position"].AsVector3(); |
1018 | Quaternion rotation = inner_instance_list["rotation"].AsQuaternion(); | 1026 | Quaternion rotation = inner_instance_list["rotation"].AsQuaternion(); |