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

Commit

Permalink
Merge pull request #1644 from pypeclub/bugifx/new_project_anatomy_values
Browse files Browse the repository at this point in the history
  • Loading branch information
mkolar authored Jun 4, 2021
2 parents f8e1d50 + 3d66b08 commit 6b1cce4
Showing 1 changed file with 8 additions and 3 deletions.
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

0 comments on commit 6b1cce4

Please sign in to comment.