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

3pt update

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

  • Скачать
  • Почтовые патчи
  • Простое отличие
Слиты nikitronn запросил слияние 3pt_update в master Июл 10, 2018
  • Обзор 6
  • Коммиты 5
  • Конвейеры 0
  • Изменения 2

Created by: zeffii

the default UI for this node doesn't make a whole lot of sense, we can use the quicklink mechanism to inject a vector node into the 3pt input socket. It might be interesting and beneficial for other nodes to also offer a way for nodes to override the exact kind of quicklink behaviour.

The initial intent of the quicklink handler was to allow specific behaviour that makes sense to individual nodes. A quicklink for the Rotation node isn't the same behaviour you might want for the 3pt_node, proof is the issue posted by @Durman .

This pr updates the 3pt node and now will offer a custom function (defined in the node) to set up your own quicklink behaviour.

  • new general socket property called "custom_quicklink_function_name", it will (obviously?) store the name of the function (located on the node) that will be used to draw the socket ui row.
  • when the above property is not "", then the function will be called in a try/except by the quicklink pathway in node_tree.py -
     def draw_quick_link(self, context, layout, node):
         ...
  • if there are errors in the UI draw call, then the default quicklink for that sockettype will be drawn.

no ETA.

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