FEM: Fix problem with Show button not reverting mesh deformation

Signed-off-by: Przemo Firszt <[email protected]>
This commit is contained in:
Przemo Firszt
2015-06-02 11:35:34 +01:00
parent dc7da86261
commit 302dbbf0be
+4
View File
@@ -560,7 +560,11 @@ class _ResultControlTaskPanel:
def showDisplacementClicked(self, checked):
QApplication.setOverrideCursor(Qt.WaitCursor)
factor = 0.0
if checked:
factor = self.form.horizontalScrollBar_Factor.value()
self.setDisplacement()
self.MeshObject.ViewObject.animate(factor)
QtGui.qApp.restoreOverrideCursor()
def sliderValue(self, value):