From 99e5ed17df39c5fdb62fcfebf1658f6d9dbf1f18 Mon Sep 17 00:00:00 2001 From: Richard Eakin Date: Wed, 23 Oct 2024 15:11:31 -0700 Subject: [PATCH] Context UI function makes a copy of auto-pulled nodes before displaying properties --- test/_audio/AudioTests/src/AudioTestsApp.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/_audio/AudioTests/src/AudioTestsApp.cpp b/test/_audio/AudioTests/src/AudioTestsApp.cpp index 4ad46bf259..5b6ecc1d5d 100644 --- a/test/_audio/AudioTests/src/AudioTestsApp.cpp +++ b/test/_audio/AudioTests/src/AudioTestsApp.cpp @@ -370,11 +370,11 @@ void AudioTestsApp::updateContextUI() audio::Node *hovered = nullptr; printNodeFn( ctx->getOutput().get(), expand, &hovered ); - size_t numAutoPulledNodes = ctx->getAutoPulledNodes().size(); - if( numAutoPulledNodes ) { + const auto autoPulledNodes = ctx->getAutoPulledNodes(); + if( autoPulledNodes.size() > 0 ) { im::Separator(); - im::Text( "auto pulled nodes: %d", numAutoPulledNodes ); - for( const auto& node : ctx->getAutoPulledNodes() ) { + im::Text( "auto pulled nodes: %d", (int)autoPulledNodes.size() ); + for( const auto& node : autoPulledNodes ) { printNodeFn( node, expand, &hovered ); } }