[Bf-blender-cvs] [ca9c55d0ee3] userpref_redesign: If anim player is not custom, gray out path option
Severin
noreply at git.blender.org
Thu Jan 3 22:16:27 CET 2019
Commit: ca9c55d0ee31093e1a4027f3b65d4e48015eabb1
Author: Severin
Date: Thu Jan 3 22:14:13 2019 +0100
Branches: userpref_redesign
https://developer.blender.org/rBca9c55d0ee31093e1a4027f3b65d4e48015eabb1
If anim player is not custom, gray out path option
===================================================================
M release/scripts/startup/bl_ui/space_userpref.py
===================================================================
diff --git a/release/scripts/startup/bl_ui/space_userpref.py b/release/scripts/startup/bl_ui/space_userpref.py
index a6e4aa4b90a..08265f75272 100644
--- a/release/scripts/startup/bl_ui/space_userpref.py
+++ b/release/scripts/startup/bl_ui/space_userpref.py
@@ -1146,7 +1146,10 @@ class USERPREF_PT_file_paths(PreferencePanel):
layout.prop(paths, "i18n_branches_directory", text="I18n Branches")
layout.prop(paths, "image_editor", text="Image Editor")
layout.prop(paths, "animation_player_preset", text="Playback Preset")
- layout.prop(paths, "animation_player", text="Animation Player")
+
+ row = layout.row()
+ row.enabled = paths.animation_player_preset == 'CUSTOM'
+ row.prop(paths, "animation_player", text="Animation Player")
class USERPREF_PT_file_autorun(PreferencePanel):
More information about the Bf-blender-cvs
mailing list