runTo expects an instruction instead of a step index

This commit is contained in:
baldurk
2021-06-30 16:18:08 +01:00
parent d8809653a6
commit c451dc81f3
+1 -1
View File
@@ -1424,7 +1424,7 @@ void ShaderViewer::accessedResources_contextMenu(const QPoint &pos)
QObject::connect(&gotoInstr, &QAction::triggered, [this, tag] {
bool forward = (tag.step >= m_CurrentStateIdx);
runTo({tag.step}, forward);
runTo({m_States[tag.step].nextInstruction}, forward);
});
RDDialog::show(&contextMenu, w->viewport()->mapToGlobal(pos));