feat: multi-scene workflow
This commit is contained in:
@ -108,7 +108,10 @@ class DynamicRightSelectTimer(Timer):
|
||||
node = operators.client.get(uuid=obj)
|
||||
|
||||
if node and node.owner == RP_COMMON:
|
||||
recursive = True
|
||||
if node.data and 'instance_type' in node.data.keys():
|
||||
recursive = node.data['instance_type'] != 'COLLECTION'
|
||||
|
||||
operators.client.change_owner(
|
||||
node.uuid,
|
||||
settings.username,
|
||||
@ -126,6 +129,8 @@ class DynamicRightSelectTimer(Timer):
|
||||
node = operators.client.get(uuid=obj)
|
||||
|
||||
if node and (node.owner == settings.username or node.owner == RP_COMMON):
|
||||
recursive = True
|
||||
if node.data and 'instance_type' in node.data.keys():
|
||||
recursive = node.data['instance_type'] != 'COLLECTION'
|
||||
operators.client.change_owner(
|
||||
node.uuid,
|
||||
|
@ -129,7 +129,8 @@ class SessionStartOperator(bpy.types.Operator):
|
||||
client.commit(settings.user_uuid)
|
||||
|
||||
if settings.init_scene and self.host:
|
||||
scene_uuid = client.add(bpy.context.scene)
|
||||
for scene in bpy.data.scenes:
|
||||
scene_uuid = client.add(scene)
|
||||
|
||||
# for node in client.list():
|
||||
client.commit(scene_uuid)
|
||||
|
Reference in New Issue
Block a user