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