This commit is contained in:
Swann 2021-03-11 15:45:48 +01:00
parent 647ac46c01
commit 235db712fd
No known key found for this signature in database
GPG Key ID: E1D3641A7C43AACB
2 changed files with 5 additions and 4 deletions

View File

@ -327,7 +327,7 @@ class SessionInitOperator(bpy.types.Operator):
utils.clean_scene()
for scene in bpy.data.scenes:
session.add(scene)
add(session.repository, scene)
session.init()
@ -875,7 +875,7 @@ class SessionLoadSaveOperator(bpy.types.Operator, ImportHelper):
uuid=node,
dependencies=node_data['dependencies'],
data=node_data['data'])
instance.store(graph)
graph.do_commit(instance)
instance.state = FETCHED
logging.info("Graph succefully loaded")
@ -1018,7 +1018,7 @@ def depsgraph_evaluation(scene):
if ref:
ref.resolve()
else:
scn_uuid = session.add(update.id)
scn_uuid = add(session.repository, update.id)
session.commit(scn_uuid)
session.push(scn_uuid, check_data=False)
def register():

View File

@ -17,6 +17,7 @@
import logging
import sys
import traceback
import bpy
from replication.constants import (FETCHED, RP_COMMON, STATE_ACTIVE,
@ -117,7 +118,7 @@ class ApplyTimer(Timer):
try:
apply(session.repository, node)
except Exception as e:
logging.error(f"Fail to apply {node_ref.uuid}: {e}")
traceback.print_exc()
else:
if node_ref.bl_reload_parent:
for parent in session.repository.find_parents(node):