diff --git a/src/Gui/View3DInventorViewer.cpp b/src/Gui/View3DInventorViewer.cpp index 33ce3cbf6..7212a6fe1 100644 --- a/src/Gui/View3DInventorViewer.cpp +++ b/src/Gui/View3DInventorViewer.cpp @@ -178,6 +178,10 @@ View3DInventorViewer::View3DInventorViewer (QWidget *parent, const char *name, pShapeHints->ref(); this->backgroundroot->addChild(pShapeHints); + SoLightModel* pcLightModel = new SoLightModel(); + pcLightModel->model = SoLightModel::PHONG; + this->backgroundroot->addChild(pcLightModel); + // Background stuff pcBackGround = new SoFCBackgroundGradient; diff --git a/src/Mod/Machining_Distortion/InitGui.py b/src/Mod/Machining_Distortion/InitGui.py index 81dc53a47..5b323bddc 100755 --- a/src/Mod/Machining_Distortion/InitGui.py +++ b/src/Mod/Machining_Distortion/InitGui.py @@ -176,6 +176,7 @@ class MachiningDistortionWorkbench ( Workbench ): self.setWatchers() FreeCADGui.Control.showTaskView() Msg("MachiningDistortionWorkbench::Activated()\n") + def Deactivated(self): Msg("MachiningDistortionWorkbench::Deactivated()\n") diff --git a/src/Mod/Machining_Distortion/MachDistAlignment.py b/src/Mod/Machining_Distortion/MachDistAlignment.py index dd3079384..90caab1ea 100644 --- a/src/Mod/Machining_Distortion/MachDistAlignment.py +++ b/src/Mod/Machining_Distortion/MachDistAlignment.py @@ -39,9 +39,9 @@ class _CommandAlignment: "the MachDist Alignment command definition" def GetResources(self): return {'Pixmap' : 'MachDist_Align', - 'MenuText': QtCore.QT_TRANSLATE_NOOP("MachDist_Alignment","Machine-Distortion Alignment"), + 'MenuText': QtCore.QT_TRANSLATE_NOOP("MachDist_Alignment","Part Alignment"), 'Accel': "A", - 'ToolTip': QtCore.QT_TRANSLATE_NOOP("MachDist_Alignment","Machine-Distortion Alignment")} + 'ToolTip': QtCore.QT_TRANSLATE_NOOP("MachDist_Alignment","Part Alignment")} def Activated(self): FreeCAD.ActiveDocument.openTransaction("Alignment") diff --git a/src/Mod/Machining_Distortion/MachDistAnalysis.py b/src/Mod/Machining_Distortion/MachDistAnalysis.py index 576181a35..4b73989b9 100644 --- a/src/Mod/Machining_Distortion/MachDistAnalysis.py +++ b/src/Mod/Machining_Distortion/MachDistAnalysis.py @@ -45,6 +45,7 @@ class _CommandAnalysis: def Activated(self): FreeCAD.ActiveDocument.openTransaction("Create Analysis") FreeCADGui.addModule("FemGui") + FreeCADGui.doCommand("FreeCADGui.ActiveDocument.ActiveView.setAxisCross(True)") FreeCADGui.doCommand("App.activeDocument().addObject('Fem::FemAnalysis','PartDistortion')") FreeCADGui.doCommand("FemGui.setActiveAnalysis(App.activeDocument().ActiveObject)") sel = FreeCADGui.Selection.getSelection()