We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4edf283 commit c5ab17dCopy full SHA for c5ab17d
Assets/Integrations/Autodesk/maya/scripts/unityCommands.mel
@@ -157,7 +157,11 @@ proc importFile(string $filePathStr){
157
$unityExportSet = `format -stringArg $fileNameWithoutExt $UnityExportSetNameFormat`;
158
159
string $origNamespace = `namespaceInfo -cur -an`;
160
- string $targetNamespace = `format -s $origNamespace -s $fileNameWithoutExt "^1s:^2s"`;
+ string $targetNamespace = ":" + $fileNameWithoutExt;
161
+ // make sure there are no duplicate colons in namespace name
162
+ if($origNamespace != ":"){
163
+ $targetNamespace = `format -s $origNamespace -s $fileNameWithoutExt "^1s:^2s"`;
164
+ }
165
166
$setNamespaceExists = false;
167
if (setExists($unityExportSet)){
0 commit comments