mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 00:46:02 +08:00
compact the trivial te case, a more complete one may be needed even beening heavy
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user