protected virtual bool IsAcceptableContextToJump(string toolCurrent, string toolTarget)
{
if (toolCurrent == toolTarget)
{
ICmObject obj = GetCurrentCmObject();
// Disable if target is the current object, or target is owned directly by the target object.
if (obj != null && (obj.Hvo == m_hvo || m_cache.ServiceLocator.GetObject(m_hvo).Owner == obj))
{
return false; // we're already there!
}
}
return true;
}