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 #2711 from pypeclub/bugfix/studio_anatomy_override…
Browse files Browse the repository at this point in the history
…s_fix

Settings: Studio Project anatomy is queried using right keys
  • Loading branch information
iLLiCiTiT authored Feb 14, 2022
2 parents 9ffcf28 + 11d4a34 commit 939bc20
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions openpype/settings/handlers.py
Original file line number Diff line number Diff line change
Expand Up @@ -995,15 +995,15 @@ def _get_project_anatomy_overrides_for_version(self, version=None):
# QUESTION cache?
if version == LEGACY_SETTINGS_VERSION:
return self.collection.find_one({
"type": PROJECT_SETTINGS_KEY,
"type": PROJECT_ANATOMY_KEY,
"is_default": True
})

if version is None:
version = self._current_version

return self.collection.find_one({
"type": self._project_settings_key,
"type": self._project_anatomy_key,
"is_default": True,
"version": version
})
Expand Down

0 comments on commit 939bc20

Please sign in to comment.