Открыть боковую панель
nikitronn
sverchok
Коммиты
f2f358bc
Не подтверждена
Коммит
f2f358bc
создал
Май 21, 2021
по автору
Dealga McArdle
Зафиксировано автором
GitHub
Май 21, 2021
Просмотр файлов
test (#4108)
владелец
74a48086
Изменения
1
Скрыть пробелы
Построчно
Рядом
utils/nodeview_time_graph_drawing.py
Просмотр файла @
f2f358bc
...
...
@@ -9,6 +9,7 @@
import
bgl
import
blf
import
bpy
from
mathutils
import
Vector
import
gpu
from
gpu_extras.batch
import
batch_for_shader
...
...
@@ -96,6 +97,11 @@ def draw_node_time_infos(*data):
x
,
y
=
get_xy_for_bgl_drawing
(
node
)
x
,
y
=
int
(
x
),
int
(
y
)
if
node
.
hide
and
isinstance
(
node
.
dimensions
,
Vector
):
# just in case we are still overriding node.dimensions anywhere.
# this is not exact, but it's better than the alternative
y
+=
(
node
.
dimensions
[
1
]
/
2
)
-
10
show_str
=
string_from_duration
(
node_data
[
'duration'
])
draw_text
(
font_id
,
(
x
,
y
),
show_str
,
(
r
,
g
,
b
))
...
...
Редактирование
Предварительный просмотр
Поддерживает Markdown
0%
Попробовать снова
или
прикрепить новый файл
.
Отмена
You are about to add
0
people
to the discussion. Proceed with caution.
Сначала завершите редактирование этого сообщения!
Отмена
Пожалуйста,
зарегистрируйтесь
или
войдите
чтобы прокомментировать