Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLukas Tönne <lukas.toenne@gmail.com>2015-02-25 14:04:28 +0300
committerLukas Tönne <lukas.toenne@gmail.com>2015-03-26 16:10:35 +0300
commit228a3fd4dc258e19bb42c9d98337db20ab8dda74 (patch)
tree56891ef0f307bd3f1af56076c2769d1f06b08da8 /release
parent45a1bd80543c80dfdcf67c78e0dc62aa08e7ce50 (diff)
UI fixes, draw bake operator button only once at the top.
Diffstat (limited to 'release')
-rw-r--r--release/scripts/startup/bl_ui/properties_scene.py14
1 files changed, 10 insertions, 4 deletions
diff --git a/release/scripts/startup/bl_ui/properties_scene.py b/release/scripts/startup/bl_ui/properties_scene.py
index a702b2a2a3b..74708363b97 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)