Commit b9320c48 authored by Emmanuel Promayon's avatar Emmanuel Promayon

FIXED update "Display Frame" depending on component state

parent d099bca4
......@@ -119,7 +119,6 @@ void FrameEditor::init() {
connect(ui.translatePushButton, SIGNAL(clicked()), this, SLOT(translate()));
connect(ui.setTranslationPushButton, SIGNAL(clicked()), this, SLOT(setTranslation()));
// connect(ui.transformationTableWidget, SIGNAL(cellChanged(int, int)), this, SLOT(transformationChanged()));
for (int j = 0; j < 4; j++) {
for (int i = 0; i < 4; i++) {
connect(transfromMatrixElements[j][i], SIGNAL(returnPressed()), this, SLOT(transformationChanged()));
......@@ -159,7 +158,12 @@ QWidget* FrameEditor::getWidget() {
// --------------- initializeDialogWithCurrentComponent -------------------
void FrameEditor::initializeDialogWithCurrentComponent() {
// ui.displayFrameCheckBox->setChecked(false);
// update checkbox
ui.displayFrameCheckBox->blockSignals(true);
bool isFrameDisplayed = currentComponent->getFrameVisibility(InteractiveViewer::get3DViewer());
ui.displayFrameCheckBox->setChecked(isFrameDisplayed);
ui.displayFrameCheckBox->blockSignals(false);
// Update the Parent Frame
bool parentFrameSignalState = ui.parentFrameComboBox->blockSignals(true);
ui.parentFrameComboBox->clear();
......
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