Merge branch '209-adding-a-scene-create-node-duplicates' into 'develop'

Resolve "Adding a scene create node duplicates"

See merge request slumber/multi-user!135
This commit is contained in:
Swann Martinez 2021-06-28 08:30:22 +00:00
commit e706c8e0bf

View File

@ -103,7 +103,8 @@ def on_scene_update(scene):
else:
continue
elif isinstance(update.id, bpy.types.Scene):
scn_uuid = porcelain.add(session.repository, update.id)
scene = bpy.data.scenes.get(update.id.name)
scn_uuid = porcelain.add(session.repository, scene)
porcelain.commit(session.repository, scn_uuid)
porcelain.push(session.repository, 'origin', scn_uuid)