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

@ -187,6 +187,13 @@ namespace MatterHackers.MatterControl.Library
|| ApplicationController.Instance.Library.ContentProviders.Keys.Contains(fileExtensionLower));
}
public bool IsMeshFileType(string fileName)
{
string fileExtensionLower = Path.GetExtension(fileName).ToLower().Trim('.');
return !string.IsNullOrEmpty(fileExtensionLower)
&& ApplicationSettings.LibraryMeshFileExtensions.Contains(fileExtensionLower);
}
/// <summary>
/// Notifies listeners that the ActiveContainer Changed
/// </summary>