clarify warning message

felipesanches-svg
don bright 2012-08-21 03:10:06 +02:00
parent 69f90c13bb
commit d831b44474
1 changed files with 3 additions and 6 deletions

View File

@ -241,12 +241,9 @@ Response CGALEvaluator::visit(State &state, const TransformNode &node)
// First union all children
N = applyToChildren(node, CGE_UNION);
if ( matrix_contains_infinity( node.matrix ) ) {
PRINT("Warning: Transformation matrix contains Infinity - removing object.");
N.reset();
}
if ( matrix_contains_nan( node.matrix ) ) {
PRINT("Warning: Transformation matrix contains Not-a-Number - removing object");
if ( matrix_contains_infinity( node.matrix ) || matrix_contains_nan( node.matrix ) ) {
// due to the way parse/eval works we can't currently distinguish between NaN and Inf
PRINT("Warning: Transformation matrix contains Not-a-Number and/or Infinity - removing object.");
N.reset();
}