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
path: root/intern
diff options
context:
space:
mode:
authorThomas Dinges <blender@dingto.org>2014-07-05 17:39:08 +0400
committerThomas Dinges <blender@dingto.org>2014-07-05 17:39:08 +0400
commitf47360701436b3ba4294ebe22479f809469fe844 (patch)
tree98fa2cd274247ab80b64f05f3d2fe38fd857b256 /intern
parent9acabc13de8f437601b6cca09118baba9f44ee81 (diff)
Cycles: Some tweaks to baking UI.
* Put Normal Settings beneath the other ones, wild button jumping should be avoided. * Remove Cage prefix for Object and Extrusion, it's clear from the button placement, the former UI was too squeezed...
Diffstat (limited to 'intern')
-rw-r--r--intern/cycles/blender/addon/ui.py36
1 files changed, 14 insertions, 22 deletions
diff --git a/intern/cycles/blender/addon/ui.py b/intern/cycles/blender/addon/ui.py
index 9dd5a4e81ce..35ae8ecb7c1 100644
--- a/intern/cycles/blender/addon/ui.py
+++ b/intern/cycles/blender/addon/ui.py
@@ -566,7 +566,6 @@ class CyclesObject_PT_motion_blur(CyclesButtonsPanel, Panel):
rd = context.scene.render
scene = context.scene
- # cscene = scene.cycles
layout.active = rd.use_motion_blur
@@ -580,7 +579,6 @@ class CyclesObject_PT_motion_blur(CyclesButtonsPanel, Panel):
rd = context.scene.render
scene = context.scene
- # cscene = scene.cycles
ob = context.object
cob = ob.cycles
@@ -1203,7 +1201,6 @@ class CyclesRender_PT_CurveRendering(CyclesButtonsPanel, Panel):
@classmethod
def poll(cls, context):
scene = context.scene
- # cscene = scene.cycles
psys = context.particle_system
return CyclesButtonsPanel.poll(context) and psys and psys.settings.type == 'HAIR'
@@ -1246,38 +1243,34 @@ class CyclesRender_PT_bake(CyclesButtonsPanel, Panel):
scene = context.scene
cscene = scene.cycles
-
cbk = scene.render.bake
-
- layout.operator("object.bake", icon='RENDER_STILL').type = \
- cscene.bake_type
-
+
+ layout.operator("object.bake", icon='RENDER_STILL').type = cscene.bake_type
+
col = layout.column()
col.prop(cscene, "bake_type")
-
col.separator()
+
split = layout.split()
- sub = split.column()
- sub.prop(cbk, "use_clear")
- sub.prop(cbk, "margin")
-
- sub = split.column()
- sub.prop(cbk, "use_selected_to_active")
- sub = sub.column()
+ col = split.column()
+ col.prop(cbk, "margin")
+ col.prop(cbk, "use_clear")
+ col = split.column()
+ col.prop(cbk, "use_selected_to_active")
+ sub = col.column()
sub.active = cbk.use_selected_to_active
-
sub.prop(cbk, "use_cage", text="Cage")
if cbk.use_cage:
- sub.prop(cbk, "cage_extrusion", text="Cage Extrusion")
- sub.prop_search(cbk, "cage_object", scene, "objects")
+ sub.prop(cbk, "cage_extrusion", text="Extrusion")
+ sub.prop_search(cbk, "cage_object", scene, "objects", text="")
else:
sub.prop(cbk, "cage_extrusion", text="Ray Distance")
if cscene.bake_type == 'NORMAL':
- col.separator()
- box = col.box()
+ layout.separator()
+ box = layout.box()
box.label(text="Normal Settings:")
box.prop(cbk, "normal_space", text="Space")
@@ -1295,7 +1288,6 @@ class CyclesParticle_PT_CurveSettings(CyclesButtonsPanel, Panel):
@classmethod
def poll(cls, context):
scene = context.scene
- # cscene = scene.cycles
ccscene = scene.cycles_curves
psys = context.particle_system
use_curves = ccscene.use_curves and psys