Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix mesh calculator IF operator
  • Loading branch information
vcloarec authored and github-actions[bot] committed Jun 18, 2021
1 parent 8cb1737 commit 640ae1b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/core/mesh/qgsmeshcalcnode.cpp
Expand Up @@ -241,6 +241,11 @@ bool QgsMeshCalcNode::isNonTemporal() const

switch ( mOperator )
{
case QgsMeshCalcNode::opIF:
return ( mLeft && mLeft->isNonTemporal() ) &&
( mRight && mRight->isNonTemporal() &&
mCondition->isNonTemporal() );
break;
case QgsMeshCalcNode::opPLUS:
case QgsMeshCalcNode::opMINUS:
case QgsMeshCalcNode::opMUL:
Expand All @@ -255,7 +260,6 @@ bool QgsMeshCalcNode::isNonTemporal() const
case QgsMeshCalcNode::opAND:
case QgsMeshCalcNode::opOR:
case QgsMeshCalcNode::opNOT:
case QgsMeshCalcNode::opIF:
case QgsMeshCalcNode::opSIGN:
case QgsMeshCalcNode::opMIN:
case QgsMeshCalcNode::opMAX:
Expand Down

0 comments on commit 640ae1b

Please sign in to comment.