File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed
Assets/Integrations/Autodesk/maya/scripts Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -244,7 +244,9 @@ global proc unityExport(){
244
244
continue;
245
245
}
246
246
247
- if(`sets -isIntersecting $exportSet $selectedSetList`){
247
+ if(`sets -isIntersecting $exportSet $selectedSetList` ||
248
+ stringArrayContains($exportSet, $origSelection)){
249
+
248
250
$setsToExport[$i] = $exportSet;
249
251
$i++;
250
252
}
@@ -253,6 +255,12 @@ global proc unityExport(){
253
255
// delete temporary selection set
254
256
delete $selectedSet;
255
257
258
+ // if selection doesn't belong to a set, export to a new file
259
+ if(size($setsToExport) <= 0){
260
+ eval "SendToUnitySelection";
261
+ return;
262
+ }
263
+
256
264
for($unitySet in $setsToExport){
257
265
print ("exporting set: " + $unitySet);
258
266
You can’t perform that action at this time.
0 commit comments