Merge remote-tracking branch 'origin/master' into 1.6
This commit is contained in:
@@ -612,7 +612,16 @@ namespace FlaxEditor.Windows
|
||||
/// <param name="files">The files paths to import.</param>
|
||||
public void Paste(string[] files)
|
||||
{
|
||||
Editor.ContentImporting.Import(files, CurrentViewFolder);
|
||||
var importFiles = new List<string>();
|
||||
foreach (var sourcePath in files)
|
||||
{
|
||||
var item = Editor.ContentDatabase.Find(sourcePath);
|
||||
if (item != null)
|
||||
Editor.ContentDatabase.Copy(item, Path.Combine(CurrentViewFolder.Path, item.FileName));
|
||||
else
|
||||
importFiles.Add(sourcePath);
|
||||
}
|
||||
Editor.ContentImporting.Import(importFiles, CurrentViewFolder);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
Reference in New Issue
Block a user