Merge commit 'origin/master (9395646c2c44cdf568ca950700d71fe966f2d80f)' into blender2.8
authorDalai Felinto <dfelinto@gmail.com>
Wed, 10 May 2017 12:21:14 +0000 (14:21 +0200)
committerDalai Felinto <dfelinto@gmail.com>
Wed, 10 May 2017 12:21:14 +0000 (14:21 +0200)
release/scripts/startup/bl_ui/space_sequencer.py
source/blender/editors/interface/interface_handlers.c

index bb3f26f89f34a1cd99db8658202eed631943046e..f2deb127a088d54e986abd6bc24b3ff9dff19784 100644 (file)
@@ -42,7 +42,7 @@ def draw_color_balance(layout, color_balance):
     col.label(text="Lift:")
     col.separator()
     col.separator()
-    col.prop(color_balance, "lift")
+    col.prop(color_balance, "")
     col.prop(color_balance, "invert_lift", text="Invert", icon="ARROW_LEFTRIGHT")
     split.template_color_picker(color_balance, "lift", value_slider=True,  cubic=True)
 
@@ -52,7 +52,7 @@ def draw_color_balance(layout, color_balance):
     col.label(text="Gamma:")
     col.separator()
     col.separator()
-    col.prop(color_balance, "gamma")
+    col.prop(color_balance, "")
     col.prop(color_balance, "invert_gamma", text="Invert", icon="ARROW_LEFTRIGHT")
     split.template_color_picker(color_balance, "gamma", value_slider=True, lock_luminosity=True, cubic=True)
 
@@ -62,7 +62,7 @@ def draw_color_balance(layout, color_balance):
     col.label(text="Gain:")
     col.separator()
     col.separator()
-    col.prop(color_balance, "gain", text="Gain")
+    col.prop(color_balance, "gain", text="")
     col.prop(color_balance, "invert_gain", text="Invert", icon="ARROW_LEFTRIGHT")
     split.template_color_picker(color_balance, "gain", value_slider=True, lock_luminosity=True, cubic=True)
 
@@ -509,7 +509,7 @@ class SEQUENCER_PT_edit(SequencerButtonsPanel, Panel):
         frame_current = scene.frame_current
         strip = act_strip(context)
 
-        split = layout.split(percentage=0.25, align=True)
+        split = layout.split(percentage=0.25)
         split.label(text="Name:")
         split.prop(strip, "name", text="")
 
@@ -532,15 +532,17 @@ class SEQUENCER_PT_edit(SequencerButtonsPanel, Panel):
             row = layout.row()
             row.prop(strip, "mute", toggle=True, icon_only=True, icon='MUTE_IPO_OFF')
 
-        col = layout.column()
-        col.enabled = not strip.lock
-        sub = col.row(align=True)
 
-        sub = col.column(align=True)
-        row = sub.row(align=True)
-        row.prop(strip, "channel")
+        col = layout.column(align=True)
+        row = col.row(align=True)
+
+        row_sub = row.row(align=True)
+        row_sub.enabled = not strip.lock
+        row_sub.prop(strip, "channel")
         row.prop(strip, "lock", toggle=True, icon_only=True)
 
+        sub = col.column(align=True)
+        sub.enabled = not strip.lock
         sub.prop(strip, "frame_start")
         sub.prop(strip, "frame_final_duration")
 
index 59e0961f0db039c163942fe1b5a4ade8e6f2b050..ca0a5ffcbfcb06f36f83afdaf97f7c2449e953a8 100644 (file)
@@ -7007,7 +7007,8 @@ static bool ui_but_menu(bContext *C, uiBut *but)
                }
 
                /* Set the operator pointer for python access */
-               uiLayoutSetContextPointer(layout,"button_operator", but->opptr);
+               if (but->opptr)
+                       uiLayoutSetContextPointer(layout,"button_operator", but->opptr);
 
                uiItemS(layout);
        }