diff options
author | Campbell Barton <ideasman42@gmail.com> | 2018-10-16 00:50:35 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2018-10-16 00:52:46 +0300 |
commit | 3852e4bb8f61446575550d8b17ab4d6904a88018 (patch) | |
tree | c4db8b1af53ddd0b029ef1111f3229d355771963 /release/scripts/startup/bl_ui/properties_data_armature.py | |
parent | 20d38dafbd35e50e21376db62aa2656238fa8619 (diff) |
Cleanup: redundant len() checks
Diffstat (limited to 'release/scripts/startup/bl_ui/properties_data_armature.py')
-rw-r--r-- | release/scripts/startup/bl_ui/properties_data_armature.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/release/scripts/startup/bl_ui/properties_data_armature.py b/release/scripts/startup/bl_ui/properties_data_armature.py index 376f2d9811d..f41036db5a5 100644 --- a/release/scripts/startup/bl_ui/properties_data_armature.py +++ b/release/scripts/startup/bl_ui/properties_data_armature.py @@ -173,7 +173,7 @@ class DATA_PT_pose_library(ArmatureButtonsPanel, Panel): if poselib: # warning about poselib being in an invalid state - if len(poselib.fcurves) > 0 and len(poselib.pose_markers) == 0: + if poselib.fcurves and not poselib.pose_markers: layout.label(icon='ERROR', text="Error: Potentially corrupt library, run 'Sanitize' operator to fix") # list of poses in pose library @@ -344,7 +344,7 @@ class DATA_PT_onion_skinning(OnionSkinButtonsPanel): # , Panel): # inherit from @classmethod def poll(cls, context): # XXX: include pose-mode check? - return (context.object) and (context.armature) + return context.object and context.armature def draw(self, context): ob = context.object |