diff options
author | Lukas Tönne <lukas.toenne@gmail.com> | 2015-02-25 18:33:47 +0300 |
---|---|---|
committer | Lukas Tönne <lukas.toenne@gmail.com> | 2015-03-26 16:10:35 +0300 |
commit | 083597eb69e066ab432a1bccf73fb670adbf1628 (patch) | |
tree | a7495f7ae8b945202b95388211a519bc1c91c49f /release | |
parent | 5ada4a550252280b7c4285f5042d5305f9a2d615 (diff) |
Display cache library name and fake user button, imitating template_ID.
Diffstat (limited to 'release')
-rw-r--r-- | release/scripts/startup/bl_ui/properties_scene.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/release/scripts/startup/bl_ui/properties_scene.py b/release/scripts/startup/bl_ui/properties_scene.py index 74708363b97..bc6e16cc0c0 100644 --- a/release/scripts/startup/bl_ui/properties_scene.py +++ b/release/scripts/startup/bl_ui/properties_scene.py @@ -444,6 +444,14 @@ class SCENE_PT_cache_manager(SceneButtonsPanel, Panel): return sub def draw_cachelib(self, context, layout, cachelib): + # imitate template_ID without an actual pointer property + row = layout.row(align=True) + row.alignment = 'EXPAND' + row.prop(cachelib, "name", text="") + sub = row.row(align=True) + sub.alignment = 'RIGHT' + sub.prop(cachelib, "use_fake_user", text="F", toggle=True) + row = layout.row(align=True) row.alignment = 'LEFT' row.label("Group:") |