Skip to content

Commit 1d8b8c8

Browse files
committed
clear selection before restoring
1 parent dc86f8f commit 1d8b8c8

File tree

1 file changed

+4
-2
lines changed
  • Assets/Integrations/Autodesk/maya/scripts/unityOneClick

1 file changed

+4
-2
lines changed

Assets/Integrations/Autodesk/maya/scripts/unityOneClick/commands.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,8 @@ def doIt(self, args):
313313
maya.mel.eval(melCommand)
314314

315315
if origSelection:
316-
maya.cmds.select(origSelection, add=True)
316+
maya.cmds.select(cl=True)
317+
maya.cmds.select(origSelection, add=True, ne=True)
317318

318319
@classmethod
319320
def invoke(cls):
@@ -378,7 +379,8 @@ def doIt(self, args):
378379
maya.mel.eval(strCmd)
379380

380381
if origSelection:
381-
maya.cmds.select(origSelection, add=True)
382+
maya.cmds.select(cl=True)
383+
maya.cmds.select(origSelection, add=True, ne=True)
382384

383385
@classmethod
384386
def invoke(cls):

0 commit comments

Comments
 (0)