feat: kick command is back in the ui
clean: unused logs
This commit is contained in:
@ -117,8 +117,6 @@ class BlDatablock(ReplicatedDatablock):
|
|||||||
datablock_ref = utils.find_from_attr('uuid', self.uuid, datablock_root)
|
datablock_ref = utils.find_from_attr('uuid', self.uuid, datablock_root)
|
||||||
|
|
||||||
if not datablock_ref:
|
if not datablock_ref:
|
||||||
import logging
|
|
||||||
logging.info(self.bl_id)
|
|
||||||
datablock_ref = datablock_root.get(
|
datablock_ref = datablock_root.get(
|
||||||
self.data['name'], # Resolve by name
|
self.data['name'], # Resolve by name
|
||||||
self._construct(data=self.data)) # If it doesn't exist create it
|
self._construct(data=self.data)) # If it doesn't exist create it
|
||||||
|
@ -56,7 +56,6 @@ class BlMesh(BlDatablock):
|
|||||||
bl_icon = 'MESH_DATA'
|
bl_icon = 'MESH_DATA'
|
||||||
|
|
||||||
def _construct(self, data):
|
def _construct(self, data):
|
||||||
logging.error(f"Loading {data['name']}")
|
|
||||||
instance = bpy.data.meshes.new(data["name"])
|
instance = bpy.data.meshes.new(data["name"])
|
||||||
instance.uuid = self.uuid
|
instance.uuid = self.uuid
|
||||||
return instance
|
return instance
|
||||||
|
@ -124,6 +124,7 @@ class SessionStartOperator(bpy.types.Operator):
|
|||||||
for scene in bpy.data.scenes:
|
for scene in bpy.data.scenes:
|
||||||
scene_uuid = client.add(scene)
|
scene_uuid = client.add(scene)
|
||||||
client.commit(scene_uuid)
|
client.commit(scene_uuid)
|
||||||
|
client.push(scene_uuid)
|
||||||
|
|
||||||
if self.host:
|
if self.host:
|
||||||
try:
|
try:
|
||||||
|
@ -196,6 +196,9 @@ class SESSION_PT_settings_network(bpy.types.Panel):
|
|||||||
row = box.row()
|
row = box.row()
|
||||||
row.label(text="Password:")
|
row.label(text="Password:")
|
||||||
row.prop(runtime_settings, "password", text="")
|
row.prop(runtime_settings, "password", text="")
|
||||||
|
row = box.row()
|
||||||
|
row.label(text="Start empty:")
|
||||||
|
row.prop(settings, "start_empty", text="")
|
||||||
row = box.row()
|
row = box.row()
|
||||||
row.operator("session.start", text="CONNECT").host = False
|
row.operator("session.start", text="CONNECT").host = False
|
||||||
|
|
||||||
@ -305,7 +308,7 @@ class SESSION_PT_user(bpy.types.Panel):
|
|||||||
split.label(text="ping")
|
split.label(text="ping")
|
||||||
|
|
||||||
row = layout.row()
|
row = layout.row()
|
||||||
layout.template_list("SESSION_UL_users", "", context.window_manager, "online_users", context.window_manager, "user_index")
|
layout.template_list("SESSION_UL_users", "", context.window_manager, "online_users", context.window_manager, "user_index")
|
||||||
|
|
||||||
if active_user != 0 and active_user.username != settings.username:
|
if active_user != 0 and active_user.username != settings.username:
|
||||||
row = layout.row()
|
row = layout.row()
|
||||||
@ -322,7 +325,7 @@ class SESSION_PT_user(bpy.types.Panel):
|
|||||||
text="",
|
text="",
|
||||||
icon='TIME').target_client = active_user.username
|
icon='TIME').target_client = active_user.username
|
||||||
|
|
||||||
if runtime_settings.session_mode == 'HOST':
|
if runtime_settings.admin:
|
||||||
user_operations.operator(
|
user_operations.operator(
|
||||||
"session.kick",
|
"session.kick",
|
||||||
text="",
|
text="",
|
||||||
|
Reference in New Issue
Block a user