diff options
Diffstat (limited to 'rotord/src/nodes_maths.h')
| -rw-r--r-- | rotord/src/nodes_maths.h | 14 |
1 files changed, 7 insertions, 7 deletions
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<string,string> &_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); |
