Skip to content

Commit

Permalink
Merge pull request #1463 from 1445643474/master
Browse files Browse the repository at this point in the history
bug about blackboardnode zvalue
  • Loading branch information
legobadman authored Oct 12, 2023
2 parents 8faefee + 3b291ce commit 393f30e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions ui/zenoedit/nodesys/zenonode.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1792,6 +1792,14 @@ QVariant ZenoNode::itemChange(GraphicsItemChange change, const QVariant &value)
emit inSocketPosChanged();
emit outSocketPosChanged();
}
else if (change == ItemZValueHasChanged)
{
int type = m_index.data(ROLE_NODETYPE).toInt();
if ((type == BLACKBOARD_NODE || type == GROUP_NODE) && zValue() != ZVALUE_BLACKBOARD)
{
setZValue(ZVALUE_BLACKBOARD);
}
}
return value;
}

Expand Down

0 comments on commit 393f30e

Please sign in to comment.