forked from blender/blender
index-of-nearest-104619 #2
@ -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) {
|
||||
|
@ -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)")) {
|
||||
|
Loading…
Reference in New Issue
Block a user