From 7051ab99e00d5a2563416bc4cec2d0dc816ca80a Mon Sep 17 00:00:00 2001 From: Yuval Tassa Date: Tue, 14 Nov 2023 08:37:13 -0800 Subject: [PATCH] Enable keyframe loading and saving in passive viewer. Fixes #1175 PiperOrigin-RevId: 582332757 Change-Id: Iff23359e670906c0e88a2d34273c493bc8cbe2af --- simulate/simulate.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/simulate/simulate.cc b/simulate/simulate.cc index 191a8d82..e73fd55f 100644 --- a/simulate/simulate.cc +++ b/simulate/simulate.cc @@ -1281,7 +1281,7 @@ int UiPredicate(int category, void* userdata) { return sim->m_ || sim->is_passive_; case 3: // require model and nkey - return !sim->is_passive_ && sim->nkey_; + return (sim->m_ || sim->is_passive_) && sim->nkey_; case 4: // require model and paused return sim->m_ && !sim->run;