Invoke Click rather than changing Checked to ensure event fires

- Issue MatterHackers/MCCentral#3171
Something got messed up with baby stepping on this print
This commit is contained in:
John Lewin 2018-04-19 13:26:19 -07:00
parent 9166b1bc6d
commit 48b7a85de6
4 changed files with 7 additions and 11 deletions

View file

@ -311,7 +311,7 @@ namespace MatterHackers.MatterControl
BspNode bspTree = null;
// if there is a chached bsp tree load it
// if there is a cached bsp tree load it
var meshHashCode = mesh.GetLongHashCode();
string cachePath = ApplicationController.CacheablePath("MeshBspData", $"{meshHashCode}.bsp");
if (File.Exists(cachePath))
@ -346,13 +346,7 @@ namespace MatterHackers.MatterControl
private Mesh _buildVolumeMesh;
public Mesh BuildVolumeMesh
{
get
{
return _buildVolumeMesh;
}
}
public Mesh BuildVolumeMesh => _buildVolumeMesh;
public bool EditableScene { get; private set; }

View file

@ -804,7 +804,9 @@ namespace MatterHackers.MeshVisualizer
{
bedColor = new Color(this.BedColor, this.BedColor.alpha / 4);
}
GLHelper.Render(sceneContext.Mesh, bedColor, RenderTypes.Shaded, World.ModelviewMatrix);
if (sceneContext.PrinterShape != null)
{
GLHelper.Render(sceneContext.PrinterShape, bedColor, RenderTypes.Shaded, World.ModelviewMatrix);

View file

@ -210,14 +210,14 @@ namespace MatterHackers.MatterControl
{
if (zPlusControl.MoveAmount >= 1)
{
movePointZeroTwoMmButton.Checked = true;
movePointZeroTwoMmButton.InvokeClick();
}
}
else
{
if (zPlusControl.MoveAmount < 1)
{
moveOneMmButton.Checked = true;
moveOneMmButton.InvokeClick();
}
}

@ -1 +1 @@
Subproject commit d59ffab5d93309ab3fcdb2681cd14c4c5cf90568
Subproject commit 32c80a6750a68e961c8b8c53f4d7af83a9746144