gltf-viewer: enable animation by default (#9778)

The toggle for animation was added recently to Settings and default 
to false. This differs from before where animation is always assumed
to be enabled.

For gltf_viewer's interactive mode, we enable animation. (Batch mode
will still have animation off).

Fixes #9775
This commit is contained in:
Powei Feng
2026-03-06 09:46:13 -08:00
committed by GitHub
parent 0b8dbe9b0a
commit d78bb294ed

View File

@@ -782,6 +782,9 @@ int main(int argc, char** argv) {
: AutomationEngine::Options::ExportFormat::TIFF;
app.automationEngine->setOptions(options);
app.viewer->getSettings().animation.enabled = false;
} else {
// Enable animation by default for interactive mode (non-batch mode).
app.viewer->getSettings().animation.enabled = true;
}
if (!app.settingsFile.empty()) {