Skip to content

Commit 80fd2f8

Browse files
committed
Merge remote-tracking branch 'refs/remotes/origin/master' into UNI-22958-sprint22-release
2 parents 1e91392 + 3a11e8c commit 80fd2f8

File tree

1 file changed

+6
-1
lines changed
  • Assets/Integrations/Autodesk/maya2017/scripts/unityOneClick

1 file changed

+6
-1
lines changed

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

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,12 @@ def doIt(self, args):
295295

296296
if not self.loadUnityFbxExportSettings():
297297
return
298-
298+
299+
# select the export set for export, if it exists,
300+
# otherwise take what is currently selected
301+
if self.setExists(self._exportSet):
302+
maya.cmds.select(self._exportSet, r=True, ne=True)
303+
299304
unity_fbx_file_path = self.getAttribute(self._exportSet, self._unityFbxFilePathAttr)
300305
unity_fbx_file_name = self.getAttribute(self._exportSet, self._unityFbxFileNameAttr)
301306

0 commit comments

Comments
 (0)