index-of-nearest-104619 #2

Merged
Iliya Katushenock merged 62 commits from HooglyBoogly/blender:index-of-nearest-104619 into index_of_nearest 2023-04-20 21:19:53 +02:00
2 changed files with 4 additions and 4 deletions
Showing only changes of commit 716b9cff23 - Show all commits

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)")) {