Mercurial > hg > orthanc-stone
diff Applications/Samples/Common/RtViewerApp.cpp @ 1975:5a434f5889f8
starting pixel probe
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Sat, 29 Oct 2022 11:57:00 +0200 |
parents | c7bc9e1776a6 |
children | 07964689cb0b |
line wrap: on
line diff
--- a/Applications/Samples/Common/RtViewerApp.cpp Fri Oct 28 17:58:59 2022 +0200 +++ b/Applications/Samples/Common/RtViewerApp.cpp Sat Oct 29 11:57:00 2022 +0200 @@ -99,7 +99,12 @@ { if (activeTracker_) { - activeTracker_->Cancel(); + // Creating "dummyScene" is a HACK: It won't work with trackers + // that probe the values of the textures. For such trackers, the + // actual underlying scene should be provided. + Scene2D dummyScene; + activeTracker_->Cancel(dummyScene); + activeTracker_.reset(); } }