forked from organicmaps/organicmaps-tmp
Fixed the arrow position recovering after a routing deactivation.
This commit is contained in:
parent
45558e737d
commit
783e35005d
1 changed files with 13 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue