Make texture anims work right on singu

avinationmerge
Melanie Thielker 2014-08-11 02:07:23 +02:00
parent 0e809ab265
commit 036017bba7
1 changed files with 19 additions and 12 deletions

View File

@ -1879,6 +1879,8 @@ namespace OpenSim.Region.Framework.Scenes
} }
public void AddTextureAnimation(Primitive.TextureAnimation pTexAnim) public void AddTextureAnimation(Primitive.TextureAnimation pTexAnim)
{
if (((int)pTexAnim.Flags & 1) == 0) // ANIM_ON
{ {
byte[] data = new byte[16]; byte[] data = new byte[16];
int pos = 0; int pos = 0;
@ -1897,6 +1899,11 @@ namespace OpenSim.Region.Framework.Scenes
m_TextureAnimation = data; m_TextureAnimation = data;
} }
else
{
m_TextureAnimation = Utils.EmptyBytes;
}
}
public void AdjustSoundGain(double volume) public void AdjustSoundGain(double volume)
{ {