feat: added push

This commit is contained in:
Swann Martinez
2019-08-09 14:39:59 +02:00
parent 6f5c92c8a9
commit 3b0a913f27
3 changed files with 11 additions and 2 deletions
+2
View File
@@ -91,6 +91,7 @@ def init_supported_datablocks(supported_types_id):
add_datablock(item)
# def default_tick():
# upload_client_instance_position()
@@ -169,6 +170,7 @@ class SessionStartOperator(bpy.types.Operator):
color=list(settings.client_color),
)
client.add(usr)
client.push()
# settings.is_running = True
# bpy.ops.session.refresh()
+8 -1
View File
@@ -198,9 +198,16 @@ class SESSION_PT_outliner(bpy.types.Panel):
for item in sorted(client_keys, key=get_client_key):
area_msg = col.row(align = True)
item_box = area_msg.box()
name = "None"
#TODO: refactor that...
if hasattr(item.pointer,'name'):
name = item.pointer.name
else:
name = item.buffer['name']
detail_item_box = item_box.row()
detail_item_box.label(text="",icon=item.icon)
detail_item_box.label(text="{} ".format(item.pointer.name))
detail_item_box.label(text="{} ".format(name))
detail_item_box.label(text="{} ".format(item.owner))
detail_item_box.label(text="{} ".format(PROP_STATES[item.state]))