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_particle.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_particle.py')
-rw-r--r--release/scripts/startup/bl_ui/properties_particle.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/release/scripts/startup/bl_ui/properties_particle.py b/release/scripts/startup/bl_ui/properties_particle.py
index f4a25ccb38d..ae1f38f6985 100644
--- a/release/scripts/startup/bl_ui/properties_particle.py
+++ b/release/scripts/startup/bl_ui/properties_particle.py
@@ -174,7 +174,7 @@ class PARTICLE_PT_context_particles(ParticleButtonsPanel, Panel):
layout.prop(part, "type", text="Type")
elif not psys.settings:
- split = layout.split(percentage=0.32)
+ split = layout.split(factor=0.32)
col = split.column()
col.label(text="Settings:")
@@ -184,7 +184,7 @@ class PARTICLE_PT_context_particles(ParticleButtonsPanel, Panel):
else:
part = psys.settings
- split = layout.split(percentage=0.32)
+ split = layout.split(factor=0.32)
col = split.column()
if part.is_fluid is False:
col.label(text="Settings:")
@@ -206,7 +206,7 @@ class PARTICLE_PT_context_particles(ParticleButtonsPanel, Panel):
row.prop(psys, "seed")
if part:
- split = layout.split(percentage=0.65)
+ split = layout.split(factor=0.65)
if part.type == 'HAIR':
if psys is not None and psys.is_edited:
split.operator("particle.edited_clear", text="Free Edit")