Skip to content

Commit

Permalink
Experimental Options, UI updates
Browse files Browse the repository at this point in the history
  • Loading branch information
danielbui78 committed Aug 9, 2023
1 parent 849d46a commit 858b5f3
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 5 deletions.
2 changes: 1 addition & 1 deletion include/common_version.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@
#define COMMON_MAJOR 2023
#define COMMON_MINOR 1
#define COMMON_REV 1
#define COMMON_BUILD 55
#define COMMON_BUILD 56

#define COMMON_VERSION DZ_MAKE_VERSION( COMMON_MAJOR, COMMON_MINOR, COMMON_REV, COMMON_BUILD )
19 changes: 15 additions & 4 deletions src/DzBridgeDialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -131,8 +131,13 @@ To find out more about Daz Bridges, go to <a href=\"https://www.daz3d.com/daz-br
experimentalAnimationExportCheckBox = new QCheckBox("", animationSettingsGroupBox);
experimentalAnimationExportCheckBox->setChecked(true);
animationSettingsLayout->addRow("Use New Export", experimentalAnimationExportCheckBox);

// DB 2023-Aug-09: bake animation does not appear to be hooked up to anything, disabling for now
bakeAnimationExportCheckBox = new QCheckBox("", animationSettingsGroupBox);
animationSettingsLayout->addRow("Bake", bakeAnimationExportCheckBox);
// animationSettingsLayout->addRow("Bake", bakeAnimationExportCheckBox);
bakeAnimationExportCheckBox->setVisible(false);
bakeAnimationExportCheckBox->setDisabled(true);

faceAnimationExportCheckBox = new QCheckBox("", animationSettingsGroupBox);
animationSettingsLayout->addRow("Transfer Face Bones", faceAnimationExportCheckBox);
animationExportActiveCurvesCheckBox = new QCheckBox("", animationSettingsGroupBox);
Expand All @@ -142,7 +147,8 @@ To find out more about Daz Bridges, go to <a href=\"https://www.daz3d.com/daz-br
animationSettingsGroupBox->setVisible(false);

// Animation Help Text
const char* AnimationExportHelpText = "New custom animation export pathway which may produce better animations. Does not export the mesh.";
const char* AnimationExportHelpText = "New custom animation export pathway which can produce\n\
better quality. **DOES NOT EXPORT MESH**";
experimentalAnimationExportCheckBox->setWhatsThis(tr(AnimationExportHelpText));
experimentalAnimationExportCheckBox->setToolTip(tr(AnimationExportHelpText));
const char* BakeAnimationHelpText ="Bake complex animations to their base componenents.";
Expand Down Expand Up @@ -840,9 +846,14 @@ void DzBridgeDialog::HandleExperimentalOptionsCheckBoxClicked()
}
}

int state = m_enableExperimentalOptionsCheckBox->checkState();
// int state = m_enableExperimentalOptionsCheckBox->checkState();
// if (settings == nullptr || m_bDontSaveSettings) return;
// settings->setValue("EnableExperimentalOptions", state == Qt::Checked);

// Intentionally saving as unchecked to force users to "opt-in" every time they use experimental features
if (settings == nullptr || m_bDontSaveSettings) return;
settings->setValue("EnableExperimentalOptions", state == Qt::Checked);
settings->setValue("EnableExperimentalOptions", false);

}

#include "moc_DzBridgeDialog.cpp"

0 comments on commit 858b5f3

Please sign in to comment.