Making it easier to start a print that will not ask for feedback

Ability to ask what printer an object is on
Starting work on ability to have a button on an object to execute arbitrary code
Cleanup and dead code removal
This commit is contained in:
Lars Brubaker 2021-01-14 15:49:34 -08:00
parent 5dbcf8c06c
commit 9fa1061f1e
13 changed files with 100 additions and 38 deletions

View file

@ -85,6 +85,19 @@ namespace MatterHackers.MatterControl.DesignTools.Operations
}
}
public static PrinterConfig ContainingPrinter(this IObject3D object3D)
{
foreach (var printer in ApplicationController.Instance.ActivePrinters)
{
if (printer.Bed.Scene.Descendants().Contains(object3D))
{
return printer;
}
}
return null;
}
public static int EstimatedMemory(this IObject3D object3D)
{
return 0;