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
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue