From 8ad961bdfd711e9e1ab1572792f5820d789fad4f Mon Sep 17 00:00:00 2001 From: John Haddon Date: Thu, 31 Oct 2024 22:53:23 +0000 Subject: [PATCH] DataToTensor : Add `else` --- src/GafferML/DataToTensor.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/GafferML/DataToTensor.cpp b/src/GafferML/DataToTensor.cpp index 547e57b31f0..36ccc992331 100644 --- a/src/GafferML/DataToTensor.cpp +++ b/src/GafferML/DataToTensor.cpp @@ -169,8 +169,10 @@ void DataToTensor::compute( Gaffer::ValuePlug *output, const Gaffer::Context *co output->setToDefault(); } } - - ComputeNode::compute( output, context ); + else + { + ComputeNode::compute( output, context ); + } } Gaffer::ValuePlug::CachePolicy DataToTensor::computeCachePolicy( const Gaffer::ValuePlug *output ) const