Conditionally set MeshPath on dragdrop operations from the shell

- Issue MatterHackers/MCCentral#2409
MeshWrapper Children not persisted and loaded to MCX
This commit is contained in:
John Lewin 2017-12-19 14:50:50 -08:00
parent 80278f130b
commit 45f71f29a9
4 changed files with 22 additions and 1 deletions

View file

@ -116,6 +116,14 @@ namespace MatterHackers.MatterControl.PrintLibrary
loadedItem.Matrix = loadedItem.Matrix * Matrix4X4.CreateTranslation((double)-aabb.Center.X, (double)-aabb.Center.Y, (double)-aabb.minXYZ.Z) * placeholderItem.Matrix;
loadedItem.Color = loadedItem.Color;
// Set mesh path if tracking requested
if (trackSourceFiles
&& item is FileSystemFileItem fileItem
&& item.IsMeshFileType())
{
loadedItem.MeshPath = fileItem.Path;
}
// Notification should force invalidate and redraw
//progressReporter?.Invoke(1, "");