ui: Prevent flickering of edges when going back after multiple edge activations
This commit is contained in:
@@ -518,7 +518,7 @@ void QtGraphView::scrollToValues(int xValue, int yValue)
|
||||
m_scrollValues = Vec2i(xValue, yValue);
|
||||
}
|
||||
|
||||
void QtGraphView::activateEdge(Id edgeId, bool centerOrigin)
|
||||
void QtGraphView::activateEdge(Id edgeId)
|
||||
{
|
||||
m_onQtThread(
|
||||
[=]()
|
||||
@@ -541,12 +541,6 @@ void QtGraphView::activateEdge(Id edgeId, bool centerOrigin)
|
||||
if (edge->getData() && edge->getData()->getId() == edgeId)
|
||||
{
|
||||
edge->setIsActive(true);
|
||||
|
||||
if (centerOrigin)
|
||||
{
|
||||
centerNode(edge->getOwner());
|
||||
}
|
||||
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user