Skip to content

Commit

Permalink
bug about blackboardnode zvalue
Browse files Browse the repository at this point in the history
  • Loading branch information
1445643474 committed Oct 12, 2023
1 parent 3f41bb4 commit 3b291ce
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 3b291ce

Please sign in to comment.