diff --git a/multi_user/bl_types/bl_user.py b/multi_user/bl_types/bl_user.py index 8f0a2b2..a912467 100644 --- a/multi_user/bl_types/bl_user.py +++ b/multi_user/bl_types/bl_user.py @@ -36,6 +36,7 @@ class BlUser(BlDatablock): data['color'] = pointer.color data['selected_objects'] = pointer.selected_objects data['view_matrix'] = pointer.view_matrix + data['current_keyframe'] = bpy.context.scene.frame_current return data diff --git a/multi_user/ui.py b/multi_user/ui.py index 6c98748..8b86a5e 100644 --- a/multi_user/ui.py +++ b/multi_user/ui.py @@ -206,13 +206,16 @@ class SESSION_PT_user(bpy.types.Panel): detail_item_row.label( text="{} {}".format(username, info)) + + detail_item_row.label( + text="{}".format(client.get('current_keyframe'))) if not is_local_user: detail_item_row.operator( "session.snapview", text="", icon='VIEW_CAMERA').target_client = key - row = layout.row() + row = layout.row(align=True) else: row.label(text="Empty")