diff options
author | Campbell Barton <ideasman42@gmail.com> | 2018-08-28 05:38:54 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2018-08-28 05:50:11 +0300 |
commit | d3a72033f6804f2803502c133c40d5aa3891b4f9 (patch) | |
tree | 9157921d74c4f0e441b8280fbc473d5277d6a195 /release/scripts/modules/rna_prop_ui.py | |
parent | e9fb2feb2eaef92384b4bf7064fe2c61b1d3dad9 (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/modules/rna_prop_ui.py')
-rw-r--r-- | release/scripts/modules/rna_prop_ui.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/release/scripts/modules/rna_prop_ui.py b/release/scripts/modules/rna_prop_ui.py index a0c73a23454..c987609bafa 100644 --- a/release/scripts/modules/rna_prop_ui.py +++ b/release/scripts/modules/rna_prop_ui.py @@ -165,7 +165,7 @@ def draw(layout, context, context_member, property_type, use_edit=True): box = row.box() if use_edit: - split = box.split(percentage=0.75) + split = box.split(factor=0.75) row = split.row(align=True) else: row = box.row(align=True) |