Коммит 8e6d0263 создал по автору Ilya Portnov's avatar Ilya Portnov
Просмотр файлов

Fix live-update mode.

владелец f644bc17
...@@ -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='EDITMODE_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.
Сначала завершите редактирование этого сообщения!
Пожалуйста, зарегистрируйтесь или чтобы прокомментировать