Commit dbd56bd4 authored by Mike Kremer's avatar Mike Kremer

Added updateView() signal.

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@13919 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 0d3c29b5
......@@ -329,10 +329,11 @@ void TypeHexahedralMeshPlugin::setTranslucencyFactor() {
float val = hexMeshObject->meshNode()->translucency_factor();
double factor = QInputDialog::getDouble(0, tr("Set translucency factor"), tr("Factor [0, 1]:"), val,
0.0, 1.0, 2, &ok);
hexMeshObject->meshNode()->set_translucency_factor((float)factor);
hexMeshObject->meshNode()->set_geometry_changed(true);
if(hexMeshObject->meshNode()->translucent())
hexMeshObject->meshNode()->set_geometry_changed(true);
emit updateView();
}
}
......
......@@ -74,6 +74,9 @@ signals:
// ContextMenuInterface
void addContextMenuItem(QAction* /*_action*/, DataType /*_objectType*/, ContextMenuType /*_type*/);
// BaseInterface
void updateView();
private slots:
// BaseInterface
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment