Skip to content

Commit 57231c9

Browse files
committed
fix bug where dir gets skipped when switching Unity project
- in changing head, then changing tail, one more directory gets dropped because tail is now taken from the updated $head value
1 parent 5a8977f commit 57231c9

File tree

1 file changed

+1
-1
lines changed
  • Assets/com.unity.formats.fbx/Editor/Integrations/Autodesk/maya/scripts

1 file changed

+1
-1
lines changed

Assets/com.unity.formats.fbx/Editor/Integrations/Autodesk/maya/scripts/unityCommands.mel

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -320,8 +320,8 @@ proc switchUnityProject(string $newProjectPath){
320320
optionVar -sv "UnityProject" $head;
321321
break;
322322
}
323-
$head = dirname($head);
324323
$tail = basename($head, "");
324+
$head = dirname($head);
325325
}
326326
}
327327

0 commit comments

Comments
 (0)