Skip to content

Commit

Permalink
Channel Master: Reset not working with name spaces fixes #404
Browse files Browse the repository at this point in the history
  • Loading branch information
miquelcampos committed Apr 8, 2024
1 parent fd5e673 commit 38279de
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions release/scripts/mgear/animbits/channel_master_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ def reset_attribute(attr_config, namespace=None):
Args:
attr_config (dict): Attribute configuration
"""
ctl = get_ctl_with_namespace(attr_config, namespace=None)
ctl = get_ctl_with_namespace(attr_config, namespace=namespace)
obj = pm.PyNode(ctl)
attr = attr_config["longName"]

Expand All @@ -180,7 +180,7 @@ def reset_creation_value_attribute(attr_config, namespace=None):
Args:
attr_config (dict): Attribute configuration
"""
ctl = get_ctl_with_namespace(attr_config, namespace=None)
ctl = get_ctl_with_namespace(attr_config, namespace=namespace)
attr = attr_config["longName"]
fullname_attr = "{}.{}".format(ctl, attr)
if "creationValue" in attr_config.keys():
Expand Down

0 comments on commit 38279de

Please sign in to comment.