re-slice test can run and is passing
This commit is contained in:
parent
c66d6d44db
commit
1cd758c2c1
3 changed files with 4 additions and 3 deletions
|
|
@ -2936,6 +2936,8 @@ namespace MatterHackers.MatterControl
|
|||
}
|
||||
}
|
||||
|
||||
public bool Allow32BitReSlice { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Archives MCX and validates GCode results before starting a print operation
|
||||
/// </summary>
|
||||
|
|
|
|||
|
|
@ -674,7 +674,7 @@ namespace MatterHackers.MatterControl.PartPreviewWindow
|
|||
bottomRow.AddChild(timeContainer);
|
||||
|
||||
// we can only reslice on 64 bit, because in 64 bit we always have the gcode loaded
|
||||
if (IntPtr.Size == 8)
|
||||
if (IntPtr.Size == 8 || ApplicationController.Instance.Allow32BitReSlice)
|
||||
{
|
||||
var resliceButton = new TextButton("Re-Slice", theme)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -49,14 +49,13 @@ namespace MatterHackers.MatterControl.Tests.Automation
|
|||
[Test, Category("Emulator")]
|
||||
public async Task ReSliceHasCorrectEPositions()
|
||||
{
|
||||
Assert.AreEqual(8, IntPtr.Size, "Test requires 64bit environment as Reslice is disabled in 32bit");
|
||||
|
||||
await MatterControlUtilities.RunTest((testRunner) =>
|
||||
{
|
||||
// testRunner.ClickByName("Connection Wizard Skip Sign In Button");
|
||||
|
||||
using (var emulator = testRunner.LaunchAndConnectToPrinterEmulator())
|
||||
{
|
||||
ApplicationController.Instance.Allow32BitReSlice = true;
|
||||
var printer = testRunner.FirstPrinter();
|
||||
printer.Settings.SetValue(SettingsKey.enable_line_splitting, "0");
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue