fix: api
This commit is contained in:
parent
647ac46c01
commit
235db712fd
@ -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():
|
||||
|
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user