Allow Model -> Right Click in Part view

- Issue MatterHackers/MCCentral#4068
Lost the transform controls in design view
This commit is contained in:
John Lewin 2018-08-29 08:31:16 -07:00
parent 3176aacbcf
commit 736eab7141

View file

@ -1158,7 +1158,8 @@ namespace MatterHackers.MatterControl.PartPreviewWindow
var info = new IntersectInfo();
if (FindHitObject3D(mouseEvent.Position, ref info) is IObject3D hitObject
&& this.Printer?.ViewState.ViewMode == PartViewMode.Model) // Disallow Model -> Right Click in GCode views
&& (this.Printer == null // Allow Model -> Right Click in Part view
|| this.Printer?.ViewState.ViewMode == PartViewMode.Model)) // Disallow Model -> Right Click in GCode views
{
// Object3D/hit item context menu
if (hitObject != selectedItem)