From cbf03a315657fc9e388e78dd39e9daf4fd0a9718 Mon Sep 17 00:00:00 2001 From: Tim Redfern Date: Wed, 21 Aug 2013 13:27:22 +0100 Subject: remove division by zero log --- rotord/src/nodes_maths.h | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'rotord/src/nodes_maths.h') diff --git a/rotord/src/nodes_maths.h b/rotord/src/nodes_maths.h index 617ca76..d083c72 100644 --- a/rotord/src/nodes_maths.h +++ b/rotord/src/nodes_maths.h @@ -74,13 +74,13 @@ namespace Rotor { }; Arithmetic* clone(map &_settings) { return new Arithmetic(_settings);}; const float output(const Time_spec &time) { - if (attributes["operator"]->intVal==ARITHMETIC_divide||attributes["operator"]->intVal==ARITHMETIC_modulo){ - if (value==0.0f) { - Poco::Logger& logger = Poco::Logger::get("Rotor"); - logger.error("Arithmetic node: caught division by zero, frame "+time.frame()); - return 0.0f; - } - } + //if (attributes["operator"]->intVal==ARITHMETIC_divide||attributes["operator"]->intVal==ARITHMETIC_modulo){ + // if (value==0.0f) { + // Poco::Logger& logger = Poco::Logger::get("Rotor"); + // logger.error("Arithmetic node: caught division by zero, frame "+time.frame()); + // return 0.0f; + // } + //} if (inputs.size()) { //there should there be a way to specify number of inputs in the code rather than in xml if (inputs[0]->connection) { float in= inputs[0]->get(time); -- cgit v1.2.3