From 44ff710413378816dc7ec34ab095b18273816b97 Mon Sep 17 00:00:00 2001 From: John Haddon Date: Thu, 7 Dec 2023 13:15:26 +0000 Subject: [PATCH] print canceller --- src/Gaffer/Switch.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/Gaffer/Switch.cpp b/src/Gaffer/Switch.cpp index 4130ab52612..c17086b81b5 100644 --- a/src/Gaffer/Switch.cpp +++ b/src/Gaffer/Switch.cpp @@ -344,6 +344,12 @@ size_t Switch::inputIndex( const Context *context ) const globalScope.emplace( context, globalScopePlug ); } + std::cerr << "inputIndex canceller " << Context::current()->canceller() << std::endl; + if( Context::current()->canceller() && Context::current()->canceller()->cancelled() ) + { + std::cerr << " CANCELLED!!!" << std::endl; + } + std::cerr << "inputIndex 1 " << fullName() << std::endl; if( !enabledPlug->getValue() )