[Bf-blender-cvs] [e927f8b] master: Fix T47370: untranslateable bake panel strings.

Brecht Van Lommel noreply at git.blender.org
Tue Feb 9 19:49:02 CET 2016


Commit: e927f8b424efabfc19605854c0e5d5d9348da3c6
Author: Brecht Van Lommel
Date:   Tue Feb 9 19:44:15 2016 +0100
Branches: master
https://developer.blender.org/rBe927f8b424efabfc19605854c0e5d5d9348da3c6

Fix T47370: untranslateable bake panel strings.

Reorder buttons a bit so that these strings are not even needed, makes more
sense to have this grouped anyway.

===================================================================

M	intern/cycles/blender/addon/ui.py

===================================================================

diff --git a/intern/cycles/blender/addon/ui.py b/intern/cycles/blender/addon/ui.py
index 9fb0acd..610833b 100644
--- a/intern/cycles/blender/addon/ui.py
+++ b/intern/cycles/blender/addon/ui.py
@@ -1441,29 +1441,10 @@ class CyclesRender_PT_bake(CyclesButtonsPanel, Panel):
 
         col = layout.column()
         col.prop(cscene, "bake_type")
-        col.separator()
-
-        split = layout.split()
 
-        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="Extrusion")
-            sub.prop_search(cbk, "cage_object", scene, "objects", text="")
-        else:
-            sub.prop(cbk, "cage_extrusion", text="Ray Distance")
+        col = layout.column()
 
         if cscene.bake_type == 'NORMAL':
-            layout.separator()
-            col = layout.column()
-            col.label(text="Normal Settings:")
             col.prop(cbk, "normal_space", text="Space")
 
             row = col.row(align=True)
@@ -1473,13 +1454,6 @@ class CyclesRender_PT_bake(CyclesButtonsPanel, Panel):
             row.prop(cbk, "normal_b", text="")
 
         elif cscene.bake_type == 'COMBINED':
-            col = layout.column()
-            col.label(text="Combined Settings:")
-
-            row = col.row()
-            row.prop(cbk, "use_pass_ambient_occlusion")
-            row.prop(cbk, "use_pass_emit")
-
             row = col.row(align=True)
             row.prop(cbk, "use_pass_direct", toggle=True)
             row.prop(cbk, "use_pass_indirect", toggle=True)
@@ -1490,21 +1464,38 @@ class CyclesRender_PT_bake(CyclesButtonsPanel, Panel):
             col = split.column()
             col.prop(cbk, "use_pass_diffuse")
             col.prop(cbk, "use_pass_glossy")
+            col.prop(cbk, "use_pass_transmission")
 
             col = split.column()
-            col.prop(cbk, "use_pass_transmission")
             col.prop(cbk, "use_pass_subsurface")
+            col.prop(cbk, "use_pass_ambient_occlusion")
+            col.prop(cbk, "use_pass_emit")
 
         elif cscene.bake_type in {'DIFFUSE', 'GLOSSY', 'TRANSMISSION', 'SUBSURFACE'}:
-            layout.separator()
-            col = layout.column()
-            col.label(text="{0} Settings:".format(cscene.bake_type.title()))
-
             row = col.row(align=True)
             row.prop(cbk, "use_pass_direct", toggle=True)
             row.prop(cbk, "use_pass_indirect", toggle=True)
             row.prop(cbk, "use_pass_color", toggle=True)
 
+        layout.separator()
+
+        split = layout.split()
+
+        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="Extrusion")
+            sub.prop_search(cbk, "cage_object", scene, "objects", text="")
+        else:
+            sub.prop(cbk, "cage_extrusion", text="Ray Distance")
+
 
 class CyclesRender_PT_debug(CyclesButtonsPanel, Panel):
     bl_label = "Debug"




More information about the Bf-blender-cvs mailing list