Revert "Prevent empty Anim Packs"

This reverts commit ab053df706.
avinationmerge
Melanie 2013-01-09 00:11:08 +01:00
parent be844030ce
commit 92db4ef068
1 changed files with 0 additions and 12 deletions

View File

@ -164,13 +164,7 @@ namespace OpenSim.Region.Framework.Scenes.Animation
{
int defaultSize = 0;
if (m_defaultAnimation.AnimID != UUID.Zero)
{
defaultSize++;
}
else if (m_animations.Count == 0)
{
defaultSize++;
}
animIDs = new UUID[m_animations.Count + defaultSize];
sequenceNums = new int[m_animations.Count + defaultSize];
@ -182,12 +176,6 @@ namespace OpenSim.Region.Framework.Scenes.Animation
sequenceNums[0] = m_defaultAnimation.SequenceNum;
objectIDs[0] = m_defaultAnimation.ObjectID;
}
else if (m_animations.Count == 0)
{
animIDs[0] = m_implicitDefaultAnimation.AnimID;
sequenceNums[0] = m_defaultAnimation.SequenceNum;
objectIDs[0] = m_implicitDefaultAnimation.ObjectID;
}
for (int i = 0; i < m_animations.Count; ++i)
{