From 4d146bdf13090008e6d3c552eb2fadc12c206369 Mon Sep 17 00:00:00 2001 From: Joshua Leung Date: Sat, 22 Aug 2015 18:16:55 +1200 Subject: Fix T45689: Pose Libraries cannot be used when using lib-linked actions as poselibs This commit makes some tweaks that make it at least possible to use lib-linked actions as Pose Libraries. Specifically: * The apply poses button is no longer greyed out * It is possible to select different poses from the list of poses * All pose library operators which edit the poses stored in the poselib now have improved poll callbacks which perform extra checks for lib-linked actions (which cannot be edited, as all those changes will be lost) Caveats: * Due to the way the UI list template works, it doesn't seem to be possible to make it not grey out the items in the list. (While the double-click to rename thing shouldn't be allowed, items should at least look like they can be clicked on) * The difference between clickable vs not-clickable isn't too great, making it hard to tell that that while the Add/Remove/Sanitise toggles are not usable, the Apply Poses is actually functional. But, this is a more of a UI-toolbox level issue --- release/scripts/startup/bl_ui/properties_data_armature.py | 1 - 1 file changed, 1 deletion(-) (limited to 'release') diff --git a/release/scripts/startup/bl_ui/properties_data_armature.py b/release/scripts/startup/bl_ui/properties_data_armature.py index 84e06d4c7fc..3c9e2eb8f8b 100644 --- a/release/scripts/startup/bl_ui/properties_data_armature.py +++ b/release/scripts/startup/bl_ui/properties_data_armature.py @@ -186,7 +186,6 @@ class DATA_PT_pose_library(ArmatureButtonsPanel, Panel): # column of operators for active pose # - goes beside list col = row.column(align=True) - col.active = (poselib.library is None) # invoke should still be used for 'add', as it is needed to allow # add/replace options to be used properly -- cgit v1.2.3