Skip to content

Commit

Permalink
#5725: Allow merge action nodes to be hidden
Browse files Browse the repository at this point in the history
  • Loading branch information
codereader committed Aug 29, 2021
1 parent 2ec677c commit e2cc8f7
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion libs/scene/merge/MergeActionNode.cpp
Expand Up @@ -10,6 +10,12 @@ MergeActionNodeBase::MergeActionNodeBase() :
void MergeActionNodeBase::prepareForMerge()
{
_syncActionStatus = false;

// Unhide ourselves before merging
if (checkStateFlag(eHidden))
{
disable(eHidden);
}
}

INodePtr MergeActionNodeBase::getAffectedNode()
Expand Down Expand Up @@ -68,7 +74,7 @@ INode::Type MergeActionNodeBase::getNodeType() const

bool MergeActionNodeBase::supportsStateFlag(unsigned int state) const
{
if ((state & (eHidden | eFiltered | eExcluded | eLayered)) != 0)
if ((state & (eFiltered | eExcluded | eLayered)) != 0)
{
return false; // don't allow this node to be hidden
}
Expand Down

0 comments on commit e2cc8f7

Please sign in to comment.