diff --git a/src/rt/RtraceSimulManager.h b/src/rt/RtraceSimulManager.h index 8e50550e..22fcc2a7 100644 --- a/src/rt/RtraceSimulManager.h +++ b/src/rt/RtraceSimulManager.h @@ -1,4 +1,4 @@ -/* RCSid $Id: RtraceSimulManager.h,v 2.18 2024/11/19 20:39:40 greg Exp $ */ +/* RCSid $Id: RtraceSimulManager.h,v 2.19 2024/11/19 20:50:36 greg Exp $ */ /* * RtraceSimulManager.h * @@ -140,10 +140,7 @@ class RtraceSimulManager : public RadSimulManager { } /// Set/change trace callback void SetTraceCall(RayReportCall *cb, void *cd = NULL) { - if (cb == traceCall) { - if (cb) tcData = cd; - return; - } + if ((cb == traceCall) & (cd == tcData)) return; int nt = NThreads(); if (nt > 1) SetThreadCount(1); traceCall = cb;