Skip to content
Permalink
Browse files
fix mesh calculator IF operator
  • Loading branch information
vcloarec authored and nyalldawson committed Jun 18, 2021
1 parent 8cb1737 commit 4f1384593a8bc868dc7e90f3eaa67b64c254a4e7
Showing with 5 additions and 1 deletion.
  1. +5 −1 src/core/mesh/qgsmeshcalcnode.cpp
@@ -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:
@@ -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:

0 comments on commit 4f13845

Please sign in to comment.