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)
|
||||
|
||||
if not datablock_ref:
|
||||
import logging
|
||||
logging.info(self.bl_id)
|
||||
datablock_ref = datablock_root.get(
|
||||
self.data['name'], # Resolve by name
|
||||
self._construct(data=self.data)) # If it doesn't exist create it
|
||||
|
@ -56,7 +56,6 @@ class BlMesh(BlDatablock):
|
||||
bl_icon = 'MESH_DATA'
|
||||
|
||||
def _construct(self, data):
|
||||
logging.error(f"Loading {data['name']}")
|
||||
instance = bpy.data.meshes.new(data["name"])
|
||||
instance.uuid = self.uuid
|
||||
return instance
|
||||
|
@ -124,6 +124,7 @@ class SessionStartOperator(bpy.types.Operator):
|
||||
for scene in bpy.data.scenes:
|
||||
scene_uuid = client.add(scene)
|
||||
client.commit(scene_uuid)
|
||||
client.push(scene_uuid)
|
||||
|
||||
if self.host:
|
||||
try:
|
||||
|
@ -197,6 +197,9 @@ class SESSION_PT_settings_network(bpy.types.Panel):
|
||||
row.label(text="Password:")
|
||||
row.prop(runtime_settings, "password", text="")
|
||||
row = box.row()
|
||||
row.label(text="Start empty:")
|
||||
row.prop(settings, "start_empty", text="")
|
||||
row = box.row()
|
||||
row.operator("session.start", text="CONNECT").host = False
|
||||
|
||||
|
||||
@ -322,7 +325,7 @@ class SESSION_PT_user(bpy.types.Panel):
|
||||
text="",
|
||||
icon='TIME').target_client = active_user.username
|
||||
|
||||
if runtime_settings.session_mode == 'HOST':
|
||||
if runtime_settings.admin:
|
||||
user_operations.operator(
|
||||
"session.kick",
|
||||
text="",
|
||||
|
Reference in New Issue
Block a user