Skip to content

Commit 82e1ba7

Browse files
authored
Merge pull request #344 from Unity-Technologies/UNI-39999-redo-reverted-fix
UNI-39999 redo reverted vaild object name fix
2 parents b84ddfb + 0868d2c commit 82e1ba7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Assets/Integrations/Autodesk/maya/scripts/unityCommands.mel

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,8 @@ proc importFile(string $filePathStr){
154154

155155
$fileNameWithoutExt = match("[^@]+", $fileNameWithoutExt);
156156
}
157+
$fileNameWithoutExt = formValidObjectName($fileNameWithoutExt);
158+
157159
$unityExportSet = `format -stringArg $fileNameWithoutExt $UnityExportSetNameFormat`;
158160

159161
string $origNamespace = `namespaceInfo -cur -an`;

0 commit comments

Comments
 (0)