mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-02 00:44:52 +01:00
Optimization: Improve speed slightly more (somehow this is faster in most cases)
This commit is contained in:
parent
b30629866a
commit
86771ae01d
1 changed files with 4 additions and 4 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue