mirror of https://github.com/vitalif/openscad
clarify warning message
parent
69f90c13bb
commit
d831b44474
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue