Compare commits
1 Commits
222-server
...
223-correc
Author | SHA1 | Date | |
---|---|---|---|
4bc0feb3a5 |
@ -79,8 +79,6 @@ def on_scene_update(scene):
|
|||||||
logging.debug(f"Ignoring distant update of {dependency_updates[0].id.name}")
|
logging.debug(f"Ignoring distant update of {dependency_updates[0].id.name}")
|
||||||
return
|
return
|
||||||
|
|
||||||
update_external_dependencies()
|
|
||||||
|
|
||||||
# NOTE: maybe we don't need to check each update but only the first
|
# NOTE: maybe we don't need to check each update but only the first
|
||||||
for update in reversed(dependency_updates):
|
for update in reversed(dependency_updates):
|
||||||
update_uuid = getattr(update.id, 'uuid', None)
|
update_uuid = getattr(update.id, 'uuid', None)
|
||||||
@ -109,6 +107,11 @@ def on_scene_update(scene):
|
|||||||
porcelain.commit(session.repository, scn_uuid)
|
porcelain.commit(session.repository, scn_uuid)
|
||||||
porcelain.push(session.repository, 'origin', scn_uuid)
|
porcelain.push(session.repository, 'origin', scn_uuid)
|
||||||
|
|
||||||
|
scene_graph_changed = [u for u in reversed(dependency_updates) if getattr(u.id, 'uuid', None) and isinstance(u.id,(bpy.types.Scene,bpy.types.Collection))]
|
||||||
|
if scene_graph_changed:
|
||||||
|
porcelain.purge_orphan_nodes(session.repository)
|
||||||
|
|
||||||
|
update_external_dependencies()
|
||||||
|
|
||||||
@persistent
|
@persistent
|
||||||
def resolve_deps_graph(dummy):
|
def resolve_deps_graph(dummy):
|
||||||
|
Submodule multi_user/libs/replication updated: a44313e647...15dc5c62c0
@ -689,7 +689,6 @@ class SessionPurgeOperator(bpy.types.Operator):
|
|||||||
|
|
||||||
def execute(self, context):
|
def execute(self, context):
|
||||||
try:
|
try:
|
||||||
sanitize_deps_graph(remove_nodes=True)
|
|
||||||
porcelain.purge_orphan_nodes(session.repository)
|
porcelain.purge_orphan_nodes(session.repository)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
self.report({'ERROR'}, repr(e))
|
self.report({'ERROR'}, repr(e))
|
||||||
|
Reference in New Issue
Block a user