Make sure we can always edit non-embeded 3d views when they are available.
This commit is contained in:
parent
a188096eee
commit
ba6924c12c
1 changed files with 14 additions and 7 deletions
|
|
@ -854,15 +854,22 @@ namespace MatterHackers.MatterControl.PartPreviewWindow
|
|||
|
||||
void meshViewerWidget_LoadDone(object sender, EventArgs e)
|
||||
{
|
||||
switch (PrinterConnectionAndCommunication.Instance.CommunicationState)
|
||||
if (windowType == WindowType.Embeded)
|
||||
{
|
||||
case PrinterConnectionAndCommunication.CommunicationStates.Printing:
|
||||
case PrinterConnectionAndCommunication.CommunicationStates.Paused:
|
||||
break;
|
||||
switch (PrinterConnectionAndCommunication.Instance.CommunicationState)
|
||||
{
|
||||
case PrinterConnectionAndCommunication.CommunicationStates.Printing:
|
||||
case PrinterConnectionAndCommunication.CommunicationStates.Paused:
|
||||
break;
|
||||
|
||||
default:
|
||||
UnlockEditControls();
|
||||
break;
|
||||
default:
|
||||
UnlockEditControls();
|
||||
break;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
UnlockEditControls();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue