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:
parent
80278f130b
commit
45f71f29a9
4 changed files with 22 additions and 1 deletions
|
|
@ -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, "");
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue