#1918 Prune subtrees with nan/inf matrices also in preview mode. This broke after upgrading to eigen 3.3.x
This commit is contained in:
parent
ff46290602
commit
daa4aedb6f
1 changed files with 4 additions and 0 deletions
|
|
@ -221,6 +221,10 @@ Response CSGTreeEvaluator::visit(State &state, const CsgOpNode &node)
|
|||
Response CSGTreeEvaluator::visit(State &state, const TransformNode &node)
|
||||
{
|
||||
if (state.isPrefix()) {
|
||||
if (!node.matrix.matrix().allFinite()) {
|
||||
PRINT("WARNING: Transformation matrix contains Not-a-Number and/or Infinity - removing object.");
|
||||
return PruneTraversal;
|
||||
}
|
||||
state.setMatrix(state.matrix() * node.matrix);
|
||||
}
|
||||
if (state.isPostfix()) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue