Update openpype/hosts/maya/plugins/inventory/connect_geometry.py

Co-authored-by: Roy Nieterau <roy_nieterau@hotmail.com>
This commit is contained in:
Toke Jepsen 2023-01-31 11:56:55 +00:00 committed by GitHub
parent 658ad2a0c2
commit 67e438dcb9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -89,9 +89,7 @@ class ConnectGeometry(InventoryAction):
return
# Setup live worldspace blendshape connection.
for match in matches:
source = match[0]
target = match[1]
for source, target in matches:
blendshape = cmds.blendShape(source, target)[0]
cmds.setAttr(blendshape + ".origin", 0)
cmds.setAttr(blendshape + "." + target.split(":")[-1], 1)