Again some fixes
This commit is contained in:
parent
3f7f010041
commit
c77d2c688e
|
@ -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;
|
||||
|
|
|
@ -176,6 +176,7 @@ class MachiningDistortionWorkbench ( Workbench ):
|
|||
self.setWatchers()
|
||||
FreeCADGui.Control.showTaskView()
|
||||
Msg("MachiningDistortionWorkbench::Activated()\n")
|
||||
|
||||
def Deactivated(self):
|
||||
Msg("MachiningDistortionWorkbench::Deactivated()\n")
|
||||
|
||||
|
|
|
@ -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")
|
||||
|
|
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue
Block a user