From 137893f50872feffa814a4c492791c69c609513e Mon Sep 17 00:00:00 2001 From: baldurk Date: Tue, 24 Aug 2021 19:00:44 +0100 Subject: [PATCH] When giving nodes an effective EID, ignore trailing PopMarker EID * This applies when selecting a marker region, the effective EID is the one actually replayed to an represented in the UI. As-if it were directly selected. --- qrenderdoc/Windows/EventBrowser.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/qrenderdoc/Windows/EventBrowser.cpp b/qrenderdoc/Windows/EventBrowser.cpp index 2dcf09d19..d9e885491 100644 --- a/qrenderdoc/Windows/EventBrowser.cpp +++ b/qrenderdoc/Windows/EventBrowser.cpp @@ -1011,6 +1011,8 @@ private: ret.action = action; ret.effectiveEID = actionRange.back().eventId; + if(actionRange.back().flags & ActionFlags::PopMarker) + ret.effectiveEID--; ret.row2action[0] = 0;