[Bf-blender-cvs] [af671df] gooseberry: Display cache library name and fake user button, imitating template_ID.

Lukas Tönne noreply at git.blender.org
Mon Mar 23 13:01:25 CET 2015


Commit: af671df3e16b8009ebcbb252db2b74f9bf948315
Author: Lukas Tönne
Date:   Wed Feb 25 16:33:47 2015 +0100
Branches: gooseberry
https://developer.blender.org/rBaf671df3e16b8009ebcbb252db2b74f9bf948315

Display cache library name and fake user button, imitating template_ID.

===================================================================

M	release/scripts/startup/bl_ui/properties_scene.py

===================================================================

diff --git a/release/scripts/startup/bl_ui/properties_scene.py b/release/scripts/startup/bl_ui/properties_scene.py
index 7470836..bc6e16c 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:")




More information about the Bf-blender-cvs mailing list