Fixed the arrow position recovering after a routing deactivation.

This commit is contained in:
Daria Volvenkova 2016-05-23 19:35:55 +03:00
parent 45558e737d
commit 783e35005d

View file

@ -5,8 +5,19 @@ namespace df
bool Animation::CouldBeBlendedWith(Animation const & animation) const
{
return (GetType() != animation.GetType()) &&
m_couldBeBlended && animation.m_couldBeBlended;
bool hasSameObject = false;
TAnimObjects const & objects = animation.GetObjects();
for (auto const & object : objects)
{
if (HasObject(object))
{
hasSameObject = true;
break;
}
}
return !hasSameObject || ((GetType() != animation.GetType()) &&
m_couldBeBlended && animation.m_couldBeBlended);
}
} // namespace df