diff options
Diffstat (limited to '')
-rw-r--r-- | OpenSim.RegionServer/world/Primitive.cs | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/OpenSim.RegionServer/world/Primitive.cs b/OpenSim.RegionServer/world/Primitive.cs index b190d81..6ff66a3 100644 --- a/OpenSim.RegionServer/world/Primitive.cs +++ b/OpenSim.RegionServer/world/Primitive.cs | |||
@@ -220,7 +220,8 @@ namespace OpenSim.world | |||
220 | 220 | ||
221 | public void UpdateTexture(byte[] tex) | 221 | public void UpdateTexture(byte[] tex) |
222 | { | 222 | { |
223 | this.primData.Texture = this.OurPacket.ObjectData[0].TextureEntry = tex; | 223 | this.OurPacket.ObjectData[0].TextureEntry = tex; |
224 | this.primData.Texture = tex; | ||
224 | this.dirtyFlag = true; | 225 | this.dirtyFlag = true; |
225 | } | 226 | } |
226 | 227 | ||
@@ -401,8 +402,9 @@ namespace OpenSim.world | |||
401 | 402 | ||
402 | int i = 0; | 403 | int i = 0; |
403 | ImprovedTerseObjectUpdatePacket.ObjectDataBlock dat = new ImprovedTerseObjectUpdatePacket.ObjectDataBlock(); | 404 | ImprovedTerseObjectUpdatePacket.ObjectDataBlock dat = new ImprovedTerseObjectUpdatePacket.ObjectDataBlock(); |
404 | dat.TextureEntry = this.OurPacket.ObjectData[0].TextureEntry; | 405 | //dat.TextureEntry = this.OurPacket.ObjectData[0].TextureEntry; |
405 | 406 | dat.TextureEntry = new byte[0]; | |
407 | //Console.WriteLine("texture-entry length in improvedterse block is " + this.OurPacket.ObjectData[0].TextureEntry.Length); | ||
406 | bytes[i++] = (byte)(ID % 256); | 408 | bytes[i++] = (byte)(ID % 256); |
407 | bytes[i++] = (byte)((ID >> 8) % 256); | 409 | bytes[i++] = (byte)((ID >> 8) % 256); |
408 | bytes[i++] = (byte)((ID >> 16) % 256); | 410 | bytes[i++] = (byte)((ID >> 16) % 256); |