Skip to content

Commit

Permalink
Fix incorrect path processing
Browse files Browse the repository at this point in the history
It was malformed in case package was exported not from the Assets folder
  • Loading branch information
Dmitriy Yukhanov committed Dec 10, 2020
1 parent d5f3524 commit 98febfa
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ public static void ImportPackageToFolder(string packagePath, string selectedFold
private static void ChangeAssetItemPath(object assetItem, string selectedFolderPath)
{
var destinationPath = (string)DestinationAssetPathFieldInfo.GetValue(assetItem);
destinationPath = selectedFolderPath + destinationPath.Remove(0, 6);
destinationPath = selectedFolderPath + destinationPath.Remove(0, destinationPath.IndexOf('/'));
DestinationAssetPathFieldInfo.SetValue(assetItem, destinationPath);
}
#if CS_P2F_NEW_ARGUMENT_2
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
1.0.4
- fix incorrect path processing in case package was exported not from the Assets folder (thx vestigialdev)

1.0.3
- fix reflection errors in Unity 2019.3+ (thx viktorkadza)

Expand Down

0 comments on commit 98febfa

Please sign in to comment.