[Bf-blender-cvs] [424bc7f] alembic_pointcache: UI fixes, draw bake operator button only once at the top.
Lukas Tönne
noreply at git.blender.org
Wed Feb 25 12:04:58 CET 2015
Commit: 424bc7f3eb19d6bc0d20ceff537b5852ee8f4adc
Author: Lukas Tönne
Date: Wed Feb 25 12:04:28 2015 +0100
Branches: alembic_pointcache
https://developer.blender.org/rB424bc7f3eb19d6bc0d20ceff537b5852ee8f4adc
UI fixes, draw bake operator button only once at the top.
===================================================================
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 a702b2a..7470836 100644
--- a/release/scripts/startup/bl_ui/properties_scene.py
+++ b/release/scripts/startup/bl_ui/properties_scene.py
@@ -444,6 +444,16 @@ class SCENE_PT_cache_manager(SceneButtonsPanel, Panel):
return sub
def draw_cachelib(self, context, layout, cachelib):
+ row = layout.row(align=True)
+ row.alignment = 'LEFT'
+ row.label("Group:")
+ row.template_ID(cachelib, "group")
+
+ col = layout.column(align=True)
+ col.label("Archive:")
+ col.prop(cachelib, "filepath", text="")
+ col.operator("cachelibrary.bake")
+
first = True
for obcache in cachelib.object_caches:
ob = obcache.object
@@ -461,8 +471,6 @@ class SCENE_PT_cache_manager(SceneButtonsPanel, Panel):
self.draw_cache_item(context, sub, cachelib, ob, 'HAIR', index)
self.draw_cache_item(context, sub, cachelib, ob, 'HAIR_PATHS', index)
- layout.operator("cachelibrary.bake")
-
def draw(self, context):
layout = self.layout
@@ -472,8 +480,6 @@ class SCENE_PT_cache_manager(SceneButtonsPanel, Panel):
box = layout.box()
box.context_pointer_set("cache_library", cachelib)
- box.prop(cachelib, "filepath")
- box.template_ID(cachelib, "group")
self.draw_cachelib(context, box, cachelib)
More information about the Bf-blender-cvs
mailing list