Skip to content
This repository has been archived by the owner on Sep 20, 2024. It is now read-only.

New project anatomy values #1644

Merged
merged 3 commits into from
Jun 4, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 8 additions & 3 deletions openpype/settings/handlers.py
Original file line number Diff line number Diff line change
Expand Up @@ -590,16 +590,21 @@ def project_doc_to_anatomy_data(self, project_doc):
attributes[key] = value

project_doc_config = project_doc.get("config") or {}

app_names = set()
if "apps" in project_doc_config:
for app_item in project_doc_config.pop("apps"):
if not project_doc_config or "apps" not in project_doc_config:
set_applications = False
else:
set_applications = True
for app_item in project_doc_config["apps"]:
if not app_item:
continue
app_name = app_item.get("name")
if app_name:
app_names.add(app_name)

attributes["applications"] = list(app_names)
if set_applications:
attributes["applications"] = list(app_names)

output = {"attributes": attributes}
for key in self.anatomy_keys:
Expand Down