feat: show admin status in UI

feat: update submodule
This commit is contained in:
Swann
2020-06-09 23:56:20 +02:00
parent fdc7e4678c
commit ad99a349f7
2 changed files with 5 additions and 2 deletions

View File

@ -337,6 +337,7 @@ class SESSION_UL_users(bpy.types.UIList):
ping = '-'
frame_current = '-'
scene_current = '-'
status_icon = 'NONE'
if session:
user = session.online_users.get(item.username)
if user:
@ -345,8 +346,10 @@ class SESSION_UL_users(bpy.types.UIList):
if metadata and 'frame_current' in metadata:
frame_current = str(metadata['frame_current'])
scene_current = metadata['scene_current']
if user['admin']:
status_icon = 'FAKE_USER_ON'
split = layout.split(factor=0.3)
split.label(text=item.username)
split.label(text=item.username, icon=status_icon)
split = split.split(factor=0.5)
split.label(text=scene_current)
split.label(text=frame_current)