Skip to content

Commit 40287f0

Browse files
committed
allow importing multiple objects and adding them to the set
1 parent 065ccf2 commit 40287f0

File tree

1 file changed

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

1 file changed

+1
-5
lines changed

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

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -98,11 +98,7 @@ def doIt(self, args):
9898

9999
# Get or create the Unity Fbx Export Set
100100
allSets = maya.cmds.listSets(allSets=True)
101-
if self._exportSet in allSets:
102-
if maya.cmds.sets(self._exportSet, size=True, q=True) > 0:
103-
self.displayDebug('Set {0} is not empty, cannot update'.format(self._exportSet))
104-
return
105-
else:
101+
if not self._exportSet in allSets:
106102
# couldn't find export set so create it
107103
maya.cmds.sets(name=self._exportSet)
108104

0 commit comments

Comments
 (0)