generated from ynput/ayon-addon-template
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into bugfix/avoid_invalid_containers
- Loading branch information
Showing
5 changed files
with
48 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
from typing import Any | ||
|
||
|
||
def _convert_dirmap_0_4_3(overrides): | ||
"""maya_dirmap key was renamed to dirmap in 0.4.3""" | ||
if "maya_dirmap" not in overrides: | ||
# Legacy settings not found | ||
return | ||
|
||
if "dirmap" in overrides: | ||
# Already new settings | ||
return | ||
|
||
overrides["dirmap"] = overrides.pop("maya_dirmap") | ||
|
||
|
||
def convert_settings_overrides( | ||
source_version: str, | ||
overrides: dict[str, Any], | ||
) -> dict[str, Any]: | ||
_convert_dirmap_0_4_3(overrides) | ||
return overrides |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters