Skip to content

Commit

Permalink
Merge pull request #134 from BigRoy/enhancement/AY-6092_allow_update_…
Browse files Browse the repository at this point in the history
…between_compatible_representations

Allow update to switch between `ma` and `mb` representation
  • Loading branch information
antirotor authored Oct 7, 2024
2 parents d92fddf + bfa2266 commit 14a757b
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions client/ayon_maya/api/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -1064,6 +1064,15 @@ def _organize_containers(nodes, container):
}:
cmds.sets(node, forceElement=container)

@classmethod
def get_representation_name_aliases(cls, representation_name):
# Allow switching between `ma` and `mb` representations if new
# version happens to contain only the other representation
return {
"ma": ["mb"],
"mb": ["ma"]
}.get(representation_name, [])


class MayaLoader(LoaderPlugin):
"""Base class for loader plugins."""
Expand Down

0 comments on commit 14a757b

Please sign in to comment.