WIP: uv-simple-select #1

Closed
Chris Blackbourn wants to merge 182 commits from uv-simple-select into main

When changing the target branch, be careful to rebase the branch in your fork to match. See documentation.
Showing only changes of commit 6f0c48710e - Show all commits

View File

@ -78,16 +78,14 @@ bool node_group_poll_instance(const bNode *node,
const bNodeTree *nodetree, const bNodeTree *nodetree,
const char **disabled_hint) const char **disabled_hint)
{ {
if (node->typeinfo->poll(node->typeinfo, nodetree, disabled_hint)) { if (!node->typeinfo->poll(node->typeinfo, nodetree, disabled_hint)) {
const bNodeTree *grouptree = (const bNodeTree *)node->id;
if (grouptree) {
return nodeGroupPoll(nodetree, grouptree, disabled_hint);
}
return true; /* without a linked node tree, group node is always ok */
}
return false; return false;
}
const bNodeTree *grouptree = reinterpret_cast<const bNodeTree *>(node->id);
if (!grouptree) {
return true;
}
return nodeGroupPoll(nodetree, grouptree, disabled_hint);
} }
bool nodeGroupPoll(const bNodeTree *nodetree, bool nodeGroupPoll(const bNodeTree *nodetree,
@ -116,8 +114,7 @@ bool nodeGroupPoll(const bNodeTree *nodetree,
LISTBASE_FOREACH (const bNode *, node, &grouptree->nodes) { LISTBASE_FOREACH (const bNode *, node, &grouptree->nodes) {
if (node->typeinfo->poll_instance && if (node->typeinfo->poll_instance &&
!node->typeinfo->poll_instance( !node->typeinfo->poll_instance(node, nodetree, r_disabled_hint)) {
const_cast<bNode *>(node), const_cast<bNodeTree *>(nodetree), r_disabled_hint)) {
return false; return false;
} }
} }