We can now load at least some amfs into the 3d view.
This commit is contained in:
parent
6cacb2bafd
commit
f2c728d3b6
3 changed files with 34 additions and 6 deletions
|
|
@ -193,7 +193,9 @@ namespace MatterHackers.MatterControl.PrintLibrary
|
|||
foreach (string file in fileDropEventArgs.DroppedFiles)
|
||||
{
|
||||
string extension = Path.GetExtension(file).ToUpper();
|
||||
if (extension == ".STL" || extension == ".GCODE")
|
||||
if (extension == ".STL"
|
||||
|| extension == ".AMF"
|
||||
|| extension == ".GCODE")
|
||||
{
|
||||
fileDropEventArgs.AcceptDrop = true;
|
||||
}
|
||||
|
|
@ -206,7 +208,9 @@ namespace MatterHackers.MatterControl.PrintLibrary
|
|||
foreach (string file in fileDropEventArgs.DroppedFiles)
|
||||
{
|
||||
string extension = Path.GetExtension(file).ToUpper();
|
||||
if (extension == ".STL" || extension == ".GCODE")
|
||||
if (extension == ".STL"
|
||||
|| extension == ".AMF"
|
||||
|| extension == ".GCODE")
|
||||
{
|
||||
fileDropEventArgs.AcceptDrop = true;
|
||||
}
|
||||
|
|
@ -219,7 +223,9 @@ namespace MatterHackers.MatterControl.PrintLibrary
|
|||
foreach (string droppedFileName in fileDropEventArgs.DroppedFiles)
|
||||
{
|
||||
string extension = Path.GetExtension(droppedFileName).ToUpper();
|
||||
if (extension == ".STL" || extension == ".GCODE")
|
||||
if (extension == ".STL"
|
||||
|| extension == ".AMF"
|
||||
|| extension == ".GCODE")
|
||||
{
|
||||
PrintItem printItem = new PrintItem();
|
||||
printItem.Name = Path.GetFileNameWithoutExtension(droppedFileName);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue