Открыть боковую панель
nikitronn
sverchok
Коммиты
8e6d0263
Коммит
8e6d0263
создал
Окт 10, 2019
по автору
Ilya Portnov
Просмотр файлов
Fix live-update mode.
владелец
f644bc17
Изменения
1
Скрыть пробелы
Построчно
Рядом
ui/sv_panels.py
Просмотр файла @
8e6d0263
...
@@ -90,7 +90,7 @@ class Sv3DViewObjInUpdater(bpy.types.Operator, object):
...
@@ -90,7 +90,7 @@ class Sv3DViewObjInUpdater(bpy.types.Operator, object):
# self.speed = 1 / context.node.updateRate
# self.speed = 1 / context.node.updateRate
wm
=
context
.
window_manager
wm
=
context
.
window_manager
self
.
_timer
=
wm
.
event_timer_add
(
self
.
speed
,
context
.
window
)
self
.
_timer
=
wm
.
event_timer_add
(
self
.
speed
,
window
=
context
.
window
)
wm
.
modal_handler_add
(
self
)
wm
.
modal_handler_add
(
self
)
if
type_op
==
'end'
:
if
type_op
==
'end'
:
...
@@ -131,7 +131,7 @@ class SV_PT_3DPanel(bpy.types.Panel):
...
@@ -131,7 +131,7 @@ class SV_PT_3DPanel(bpy.types.Panel):
if
context
.
scene
.
SvShowIn3D_active
:
if
context
.
scene
.
SvShowIn3D_active
:
row
.
operator
(
OP
,
text
=
'Stop live update'
,
icon
=
'CANCEL'
).
mode
=
'end'
row
.
operator
(
OP
,
text
=
'Stop live update'
,
icon
=
'CANCEL'
).
mode
=
'end'
else
:
else
:
row
.
operator
(
OP
,
text
=
'Start live update'
,
icon
=
'EDIT'
).
mode
=
'start'
row
.
operator
(
OP
,
text
=
'Start live update'
,
icon
=
'EDIT
MODE_HLT
'
).
mode
=
'start'
col
=
layout
.
column
(
align
=
True
)
col
=
layout
.
column
(
align
=
True
)
row
=
col
.
row
(
align
=
True
)
row
=
col
.
row
(
align
=
True
)
...
...
Редактирование
Предварительный просмотр
Поддерживает Markdown
0%
Попробовать снова
или
прикрепить новый файл
.
Отмена
You are about to add
0
people
to the discussion. Proceed with caution.
Сначала завершите редактирование этого сообщения!
Отмена
Пожалуйста,
зарегистрируйтесь
или
войдите
чтобы прокомментировать