mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-26 22:02:15 +01:00
added updating of apps in project of applications change
This commit is contained in:
parent
5579c5ae6a
commit
8d74dbda3a
1 changed files with 19 additions and 0 deletions
|
|
@ -1729,6 +1729,25 @@ class SyncToAvalonEvent(BaseEvent):
|
|||
)
|
||||
)
|
||||
|
||||
if entType != "show" or key != "applications":
|
||||
continue
|
||||
|
||||
# Store apps to project't config
|
||||
apps_str = ent_info["changes"]["applications"]["new"]
|
||||
cust_attr_apps = [app for app in apps_str.split(", ") if app]
|
||||
|
||||
proj_apps, warnings = (
|
||||
avalon_sync.get_project_apps(cust_attr_apps)
|
||||
)
|
||||
if "config" not in self.updates[mongo_id]:
|
||||
self.updates[mongo_id]["config"] = {}
|
||||
self.updates[mongo_id]["config"]["apps"] = proj_apps
|
||||
|
||||
for msg, items in warnings.items():
|
||||
if not msg or not items:
|
||||
continue
|
||||
self.report_items["warning"][msg] = items
|
||||
|
||||
def process_hier_cleanup(self):
|
||||
if (
|
||||
not self.moved_in_avalon and
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue