make sure not to offset rigs

This commit is contained in:
Milan Kolar 2020-03-18 10:51:31 +01:00
parent e10343de2b
commit 6c2b056dd4

View file

@ -1,5 +1,4 @@
import pype.maya.plugin
reload(pype.maya.plugin)
from avalon import api, maya
from maya import cmds
import os
@ -102,12 +101,11 @@ class ReferenceLoader(pype.maya.plugin.ReferenceLoader):
cmds.setAttr(groupName + ".selectHandleY", cy)
cmds.setAttr(groupName + ".selectHandleZ", cz)
if "translate" in options:
cmds.setAttr(groupName + ".t", *options["translate"])
if options.get("post_process", True):
if family == "rig":
self._post_process_rig(name, namespace, context, options)
if family == "rig":
self._post_process_rig(name, namespace, context, options)
else:
if "translate" in options:
cmds.setAttr(groupName + ".t", *options["translate"])
return newNodes