feat: previous message

This commit is contained in:
Swann
2021-12-08 16:30:56 +01:00
parent 0e20d35e7d
commit 3a4f691b8f
4 changed files with 98 additions and 47 deletions

View File

@ -581,16 +581,22 @@ class SESSION_PT_replay(bpy.types.Panel):
def draw(self, context):
layout = self.layout
settings = context.window_manager.session
row= layout.row()
row.prop(bpy.context.scene, 'active_replay_file')
row.prop(settings,'replay_mode', toggle=True, expand=True)
row= layout.row()
if settings.replay_mode == 'MANUAL':
row.prop(bpy.context.scene, 'active_replay_file', text="Snapshot index")
else:
row.prop(settings, 'replay_interval', text="interval (frame)")
row= layout.row()
row.prop(settings, 'replay_persistent_collection', text="persistent collection", toggle=True, icon='OUTLINER_COLLECTION')
class SESSION_PT_repository(bpy.types.Panel):
bl_idname = "MULTIUSER_PROPERTIES_PT_panel"
bl_label = "Repository"
bl_space_type = 'VIEW_3D'
bl_space_type = 'VIEW_3D'
bl_region_type = 'UI'
bl_parent_id = 'MULTIUSER_SETTINGS_PT_panel'
bl_options = {'DEFAULT_CLOSED'}