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();
|
pShapeHints->ref();
|
||||||
this->backgroundroot->addChild(pShapeHints);
|
this->backgroundroot->addChild(pShapeHints);
|
||||||
|
|
||||||
|
SoLightModel* pcLightModel = new SoLightModel();
|
||||||
|
pcLightModel->model = SoLightModel::PHONG;
|
||||||
|
this->backgroundroot->addChild(pcLightModel);
|
||||||
|
|
||||||
|
|
||||||
// Background stuff
|
// Background stuff
|
||||||
pcBackGround = new SoFCBackgroundGradient;
|
pcBackGround = new SoFCBackgroundGradient;
|
||||||
|
|
|
@ -176,6 +176,7 @@ class MachiningDistortionWorkbench ( Workbench ):
|
||||||
self.setWatchers()
|
self.setWatchers()
|
||||||
FreeCADGui.Control.showTaskView()
|
FreeCADGui.Control.showTaskView()
|
||||||
Msg("MachiningDistortionWorkbench::Activated()\n")
|
Msg("MachiningDistortionWorkbench::Activated()\n")
|
||||||
|
|
||||||
def Deactivated(self):
|
def Deactivated(self):
|
||||||
Msg("MachiningDistortionWorkbench::Deactivated()\n")
|
Msg("MachiningDistortionWorkbench::Deactivated()\n")
|
||||||
|
|
||||||
|
|
|
@ -39,9 +39,9 @@ class _CommandAlignment:
|
||||||
"the MachDist Alignment command definition"
|
"the MachDist Alignment command definition"
|
||||||
def GetResources(self):
|
def GetResources(self):
|
||||||
return {'Pixmap' : 'MachDist_Align',
|
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",
|
'Accel': "A",
|
||||||
'ToolTip': QtCore.QT_TRANSLATE_NOOP("MachDist_Alignment","Machine-Distortion Alignment")}
|
'ToolTip': QtCore.QT_TRANSLATE_NOOP("MachDist_Alignment","Part Alignment")}
|
||||||
|
|
||||||
def Activated(self):
|
def Activated(self):
|
||||||
FreeCAD.ActiveDocument.openTransaction("Alignment")
|
FreeCAD.ActiveDocument.openTransaction("Alignment")
|
||||||
|
|
|
@ -45,6 +45,7 @@ class _CommandAnalysis:
|
||||||
def Activated(self):
|
def Activated(self):
|
||||||
FreeCAD.ActiveDocument.openTransaction("Create Analysis")
|
FreeCAD.ActiveDocument.openTransaction("Create Analysis")
|
||||||
FreeCADGui.addModule("FemGui")
|
FreeCADGui.addModule("FemGui")
|
||||||
|
FreeCADGui.doCommand("FreeCADGui.ActiveDocument.ActiveView.setAxisCross(True)")
|
||||||
FreeCADGui.doCommand("App.activeDocument().addObject('Fem::FemAnalysis','PartDistortion')")
|
FreeCADGui.doCommand("App.activeDocument().addObject('Fem::FemAnalysis','PartDistortion')")
|
||||||
FreeCADGui.doCommand("FemGui.setActiveAnalysis(App.activeDocument().ActiveObject)")
|
FreeCADGui.doCommand("FemGui.setActiveAnalysis(App.activeDocument().ActiveObject)")
|
||||||
sel = FreeCADGui.Selection.getSelection()
|
sel = FreeCADGui.Selection.getSelection()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user