diff options
author | Sybren A. Stüvel <sybren@stuvel.eu> | 2017-07-11 17:18:17 +0300 |
---|---|---|
committer | Sybren A. Stüvel <sybren@stuvel.eu> | 2017-07-11 17:18:17 +0300 |
commit | 4233ccfb6cc0e1fe96987eb757103606f6e3d530 (patch) | |
tree | a1cad57c805358f30807e2a2f26aca0bf4232377 /release/scripts/startup/bl_ui/properties_data_armature.py | |
parent | e5d74954bfe2a7a975c619c02f632df388533a17 (diff) | |
parent | 32edfd53d978b34c9eb528e705f29e3feb673d37 (diff) |
Merge branch 'master' into blender2.8
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, 4 insertions, 0 deletions
diff --git a/release/scripts/startup/bl_ui/properties_data_armature.py b/release/scripts/startup/bl_ui/properties_data_armature.py index ee159adfcef..caef60980aa 100644 --- a/release/scripts/startup/bl_ui/properties_data_armature.py +++ b/release/scripts/startup/bl_ui/properties_data_armature.py @@ -178,6 +178,10 @@ class DATA_PT_pose_library(ArmatureButtonsPanel, Panel): layout.template_ID(ob, "pose_library", new="poselib.new", unlink="poselib.unlink") if poselib: + # warning about poselib being in an invalid state + if len(poselib.fcurves) > 0 and len(poselib.pose_markers) == 0: + layout.label(icon='ERROR', text="Error: Potentially corrupt library, run 'Sanitize' operator to fix") + # list of poses in pose library row = layout.row() row.template_list("UI_UL_list", "pose_markers", poselib, "pose_markers", |