[Bf-blender-cvs] [240768e] alembic_pointcache: Display cache library name and fake user button, imitating template_ID.
Lukas Tönne
noreply at git.blender.org
Wed Feb 25 16:37:19 CET 2015
Commit: 240768ec7cb5435a28ace2b902ebddc68db24062
Author: Lukas Tönne
Date: Wed Feb 25 16:33:47 2015 +0100
Branches: alembic_pointcache
https://developer.blender.org/rB240768ec7cb5435a28ace2b902ebddc68db24062
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