diff options
author | Jacques Lucke <jacques@blender.org> | 2020-03-29 16:09:42 +0300 |
---|---|---|
committer | Jacques Lucke <jacques@blender.org> | 2020-03-29 16:09:42 +0300 |
commit | bd74f5f7abff2b51923d60b5018da70f17f5a5d6 (patch) | |
tree | f80d26814d2743090efd7ed822516ae3eba5ae09 | |
parent | 5b8b6b4c1eafbfcc08ce4f7f536f7c6f3af2be2a (diff) |
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
-rw-r--r-- | release/scripts/startup/bl_ui/properties_physics_common.py | 2 |
1 files changed, 1 insertions, 1 deletions
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() |