Skip to content
This repository has been archived by the owner on Sep 20, 2024. It is now read-only.

Commit

Permalink
Optimization: Improve speed slightly more (somehow this is faster in …
Browse files Browse the repository at this point in the history
…most cases)
  • Loading branch information
BigRoy committed Dec 28, 2021
1 parent b306298 commit 86771ae
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions openpype/hosts/maya/api/lib.py
Original file line number Diff line number Diff line change
Expand Up @@ -805,10 +805,10 @@ def polyConstraint(components, *args, **kwargs):
# a `maya.cmds.select()` call will not trigger the constraint.
with reset_polySelectConstraint():
cmds.select(components, r=1, noExpand=True)
return cmds.polySelectConstraint(*args,
mode=2,
returnSelection=True,
**kwargs)
cmds.polySelectConstraint(*args, mode=2, **kwargs)
result = cmds.ls(selection=True)
cmds.select(clear=True)
return result


@contextlib.contextmanager
Expand Down

0 comments on commit 86771ae

Please sign in to comment.