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/properties_data_curve.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/properties_data_curve.py')
-rw-r--r--release/scripts/startup/bl_ui/properties_data_curve.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/release/scripts/startup/bl_ui/properties_data_curve.py b/release/scripts/startup/bl_ui/properties_data_curve.py
index 4002568fb7d..671cff4ebb4 100644
--- a/release/scripts/startup/bl_ui/properties_data_curve.py
+++ b/release/scripts/startup/bl_ui/properties_data_curve.py
@@ -328,16 +328,16 @@ class DATA_PT_font(CurveButtonsPanelText, Panel):
text = context.curve
char = context.curve.edit_format
- row = layout.split(percentage=0.25)
+ row = layout.split(factor=0.25)
row.label(text="Regular")
row.template_ID(text, "font", open="font.open", unlink="font.unlink")
- row = layout.split(percentage=0.25)
+ row = layout.split(factor=0.25)
row.label(text="Bold")
row.template_ID(text, "font_bold", open="font.open", unlink="font.unlink")
- row = layout.split(percentage=0.25)
+ row = layout.split(factor=0.25)
row.label(text="Italic")
row.template_ID(text, "font_italic", open="font.open", unlink="font.unlink")
- row = layout.split(percentage=0.25)
+ row = layout.split(factor=0.25)
row.label(text="Bold & Italic")
row.template_ID(text, "font_bold_italic", open="font.open", unlink="font.unlink")