• S sverchok
  • Информация о проекте
    • Информация о проекте
    • Активность
    • Метки
    • Участники
  • Репозиторий
    • Репозиторий
    • Файлы
    • Коммиты
    • Ветки
    • Теги
    • Участники
    • Диаграмма
    • Сравнение
  • Задачи 148
    • Задачи 148
    • Список
    • Доски
    • Спринты
  • Запросы на слияние 21
    • Запросы на слияние 21
  • CI/CD
    • CI/CD
    • Конвейеры
    • Задания
    • Расписания
  • Развертывания
    • Развертывания
    • Окружения
    • Релизы
  • Пакеты и реестры
    • Пакеты и реестры
    • Реестр пакетов
    • Реестр контейнеров
  • Мониторинг
    • Мониторинг
    • Инциденты
  • Аналитика
    • Аналитика
    • Поток ценности
    • CI/CD
    • Репозиторий
  • Wiki
    • Wiki
  • Сниппеты
    • Сниппеты
  • Активность
  • Диаграмма
  • Создать новую задачу
  • Задания
  • Коммиты
  • Доски с задачами
Свернуть панель
  • nikitronn
  • sverchok
  • Запросы на слияние
  • !3070

Node update decorator

  • Ревью изменений

  • Скачать
  • Почтовые патчи
  • Простое отличие
Закрыто nikitronn запросил слияние node_update_decorator в master Апр 14, 2020
  • Обзор 13
  • Коммиты 3
  • Конвейеры 0
  • Изменения 2

Created by: zeffii

i don't know if this is needed, or if it's just extra complexity.

it's a decorator for the node's update function. For most nodes we don't need to implement the update function, only for nodes which change their ui according to user interaction with sockets.

When we do implement the update function, we have a few checks at the top of the function that must be done before any real dynamic UI code can be run.

Usually the code in the update function consists out of testing to see if the last output was generated, and perhaps if certain sockets are connected. The example i'll use is the combinatorics node This PR contains the poll_node decorator, which wraps the update function, the decorator will call a function called "sv_poll", which will return true is you want to avoid calling update. (in that sense it is in reverse to to normal operator poll)

Ответственный
Назначить
Проверяющие
Запросить ревью
Оценка трудозатрат
Исходная ветка: node_update_decorator