1
1

Fix: Search in node editors missing items

Mistake in d6abd2ce72.
This commit is contained in:
2023-04-19 23:19:45 -04:00
parent 5ca7e1301f
commit 716b9cff23
2 changed files with 4 additions and 4 deletions

View File

@@ -158,10 +158,10 @@ static void gather_add_node_operations(const bContext &C,
{
NODE_TYPES_BEGIN (node_type) {
const char *disabled_hint;
if (!(node_type->poll && node_type->poll(node_type, &node_tree, &disabled_hint))) {
if (node_type->poll && !node_type->poll(node_type, &node_tree, &disabled_hint)) {
continue;
}
if (!(node_type->add_ui_poll && node_type->add_ui_poll(&C))) {
if (node_type->add_ui_poll && !node_type->add_ui_poll(&C)) {
continue;
}
if (!node_type->gather_add_node_search_ops) {

View File

@@ -285,10 +285,10 @@ static void gather_socket_link_operations(const bContext &C,
{
NODE_TYPES_BEGIN (node_type) {
const char *disabled_hint;
if (!(node_type->poll && node_type->poll(node_type, &node_tree, &disabled_hint))) {
if (node_type->poll && !node_type->poll(node_type, &node_tree, &disabled_hint)) {
continue;
}
if (!(node_type->add_ui_poll && node_type->add_ui_poll(&C))) {
if (node_type->add_ui_poll && !node_type->add_ui_poll(&C)) {
continue;
}
if (StringRefNull(node_type->ui_name).endswith("(Legacy)")) {