From bd74f5f7abff2b51923d60b5018da70f17f5a5d6 Mon Sep 17 00:00:00 2001 From: Jacques Lucke Date: Sun, 29 Mar 2020 15:09:42 +0200 Subject: Fix T73945: Don't grey out "Calculate to Frames" in some cases The button seems to behave more as I'd expect without these additional checks. Previously, the button was often grayed out when it was actually working. Reviewers: ISS Differential Revision: https://developer.blender.org/D7252 --- release/scripts/startup/bl_ui/properties_physics_common.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'release') diff --git a/release/scripts/startup/bl_ui/properties_physics_common.py b/release/scripts/startup/bl_ui/properties_physics_common.py index 5397020a521..479782f1e3b 100644 --- a/release/scripts/startup/bl_ui/properties_physics_common.py +++ b/release/scripts/startup/bl_ui/properties_physics_common.py @@ -227,7 +227,7 @@ def point_cache_ui(self, cache, enabled, cachetype): col.operator("ptcache.bake", text="Bake").bake = True sub = col.row() - sub.enabled = (cache.is_frame_skip or cache.is_outdated) and enabled + sub.enabled = enabled sub.operator("ptcache.bake", text="Calculate To Frame").bake = False sub = col.column() -- cgit v1.2.3