From 65d9a34963d555e6a175919b59ad4660a2cc6153 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