[Bf-blender-cvs] [982ea69] gooseberry: UI fixes, draw bake operator button only once at the top.
Lukas Tönne
noreply at git.blender.org
Mon Mar 23 13:01:20 CET 2015
Commit: 982ea6966006530d85450d6273eb91e59a26c1e9
Author: Lukas Tönne
Date: Wed Feb 25 12:04:28 2015 +0100
Branches: gooseberry
https://developer.blender.org/rB982ea6966006530d85450d6273eb91e59a26c1e9
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