ui: Fixed graph view to not recenter on active node when clicking edge
This commit is contained in:
@@ -271,6 +271,11 @@ void QtGraphView::doRebuildGraph(
|
||||
m_graph = graph;
|
||||
}
|
||||
|
||||
if (!params.centerActiveNode)
|
||||
{
|
||||
m_activeNode.reset();
|
||||
}
|
||||
|
||||
if (params.animatedTransition)
|
||||
{
|
||||
createTransition();
|
||||
@@ -279,11 +284,6 @@ void QtGraphView::doRebuildGraph(
|
||||
{
|
||||
switchToNewGraphData();
|
||||
}
|
||||
|
||||
if (!params.centerActiveNode)
|
||||
{
|
||||
m_activeNode.reset();
|
||||
}
|
||||
}
|
||||
|
||||
void QtGraphView::doClear()
|
||||
|
||||
Reference in New Issue
Block a user