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:
authorCampbell Barton <ideasman42@gmail.com>2018-08-28 05:38:54 +0300
committerCampbell Barton <ideasman42@gmail.com>2018-08-28 05:50:11 +0300
commitd3a72033f6804f2803502c133c40d5aa3891b4f9 (patch)
tree9157921d74c4f0e441b8280fbc473d5277d6a195 /release/scripts/startup/bl_ui/space_sequencer.py
parente9fb2feb2eaef92384b4bf7064fe2c61b1d3dad9 (diff)
RNA: UILayout.split(..) 'percentage' to 'factor'
Misleading name since it's between 0..1. Use as a keyword argument to prepare for keyword only args. Also document that leaving unset has special behavior.
Diffstat (limited to 'release/scripts/startup/bl_ui/space_sequencer.py')
-rw-r--r--release/scripts/startup/bl_ui/space_sequencer.py28
1 files changed, 14 insertions, 14 deletions
diff --git a/release/scripts/startup/bl_ui/space_sequencer.py b/release/scripts/startup/bl_ui/space_sequencer.py
index 62becbc080e..aeff8c5ff67 100644
--- a/release/scripts/startup/bl_ui/space_sequencer.py
+++ b/release/scripts/startup/bl_ui/space_sequencer.py
@@ -36,7 +36,7 @@ def act_strip(context):
def draw_color_balance(layout, color_balance):
box = layout.box()
- split = box.split(percentage=0.35)
+ split = box.split(factor=0.35)
col = split.column(align=True)
col.label(text="Lift:")
col.separator()
@@ -46,7 +46,7 @@ def draw_color_balance(layout, color_balance):
split.template_color_picker(color_balance, "lift", value_slider=True, cubic=True)
box = layout.box()
- split = box.split(percentage=0.35)
+ split = box.split(factor=0.35)
col = split.column(align=True)
col.label(text="Gamma:")
col.separator()
@@ -56,7 +56,7 @@ def draw_color_balance(layout, color_balance):
split.template_color_picker(color_balance, "gamma", value_slider=True, lock_luminosity=True, cubic=True)
box = layout.box()
- split = box.split(percentage=0.35)
+ split = box.split(factor=0.35)
col = split.column(align=True)
col.label(text="Gain:")
col.separator()
@@ -537,16 +537,16 @@ class SEQUENCER_PT_edit(SequencerButtonsPanel, Panel):
frame_current = scene.frame_current
strip = act_strip(context)
- split = layout.split(percentage=0.25)
+ split = layout.split(factor=0.25)
split.label(text="Name:")
split.prop(strip, "name", text="")
- split = layout.split(percentage=0.25)
+ split = layout.split(factor=0.25)
split.label(text="Type:")
split.prop(strip, "type", text="")
if strip.type != 'SOUND':
- split = layout.split(percentage=0.25)
+ split = layout.split(factor=0.25)
split.label(text="Blend:")
split.prop(strip, "blend_type", text="")
@@ -764,7 +764,7 @@ class SEQUENCER_PT_effect(SequencerButtonsPanel, Panel):
row.prop(strip, "size_x")
row.prop(strip, "size_y")
elif strip.type == 'COLORMIX':
- split = layout.split(percentage=0.35)
+ split = layout.split(factor=0.35)
split.label(text="Blend Mode:")
split.prop(strip, "blend_effect", text="")
row = layout.row(align=True)
@@ -802,7 +802,7 @@ class SEQUENCER_PT_input(SequencerButtonsPanel, Panel):
# draw a filename if we have one
if seq_type == 'IMAGE':
- split = layout.split(percentage=0.2)
+ split = layout.split(factor=0.2)
split.label(text="Path:")
split.prop(strip, "directory", text="")
@@ -810,26 +810,26 @@ class SEQUENCER_PT_input(SequencerButtonsPanel, Panel):
elem = strip.strip_elem_from_frame(scene.frame_current)
if elem:
- split = layout.split(percentage=0.2)
+ split = layout.split(factor=0.2)
split.label(text="File:")
split.prop(elem, "filename", text="") # strip.elements[0] could be a fallback
- split = layout.split(percentage=0.4)
+ split = layout.split(factor=0.4)
split.label(text="Color Space:")
split.prop(strip.colorspace_settings, "name", text="")
- split = layout.split(percentage=0.4)
+ split = layout.split(factor=0.4)
split.label(text="Alpha:")
split.prop(strip, "alpha_mode", text="")
layout.operator("sequencer.change_path", icon='FILESEL').filter_image = True
elif seq_type == 'MOVIE':
- split = layout.split(percentage=0.2)
+ split = layout.split(factor=0.2)
split.label(text="Path:")
split.prop(strip, "filepath", text="")
- split = layout.split(percentage=0.4)
+ split = layout.split(factor=0.4)
split.label(text="Color Space:")
split.prop(strip.colorspace_settings, "name", text="")
@@ -1049,7 +1049,7 @@ class SEQUENCER_PT_filter(SequencerButtonsPanel, Panel):
col.label(text="Distortion:")
col.prop(strip, "undistort")
- split = layout.split(percentage=0.6)
+ split = layout.split(factor=0.6)
col = split.column()
col.prop(strip, "use_reverse_frames", text="Reverse")
col.prop(strip, "use_deinterlace")