feat: show admin status in UI
feat: update submodule
This commit is contained in:
parent
fdc7e4678c
commit
ad99a349f7
@ -1 +1 @@
|
||||
Subproject commit 73b56190e6992db96d6ab3c015595777d15f4c8c
|
||||
Subproject commit 9592cf90abaca46f2d4b6ca72300210487693d58
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user