diff options
author | Pablo Vazquez <venomgfx@gmail.com> | 2019-05-09 02:54:00 +0300 |
---|---|---|
committer | Pablo Vazquez <venomgfx@gmail.com> | 2019-05-09 02:54:07 +0300 |
commit | 8f1951f555f56c4db64905918911773ee19c2b3f (patch) | |
tree | fb2d314fcbedd3565aa1a89218e2f4dff802c89a /release | |
parent | 60aede44ba39ec276ebdde1f2df73eeb297bf3cc (diff) |
UI Particles: Move message about parting inside Parting panel.
Grayout parting settings if using virtual parents, and minor layout
adjustment: align min and max sliders together.
Diffstat (limited to 'release')
-rw-r--r-- | release/scripts/startup/bl_ui/properties_particle.py | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/release/scripts/startup/bl_ui/properties_particle.py b/release/scripts/startup/bl_ui/properties_particle.py index 7167be362ad..2a6913a8584 100644 --- a/release/scripts/startup/bl_ui/properties_particle.py +++ b/release/scripts/startup/bl_ui/properties_particle.py @@ -1610,9 +1610,6 @@ class PARTICLE_PT_children(ParticleButtonsPanel, Panel): col.separator() col.prop(part, "child_radius", text="Radius") col.prop(part, "child_roundness", text="Roundness", slider=True) - elif part.virtual_parents > 0.0: - sub = col.column(align=True) - sub.label(text="Parting not available with virtual parents") class PARTICLE_PT_children_parting(ParticleButtonsPanel, Panel): @@ -1630,13 +1627,20 @@ class PARTICLE_PT_children_parting(ParticleButtonsPanel, Panel): layout = self.layout part = particle_get_settings(context) + is_virtual = part.virtual_parents > 0.0 layout.use_property_split = True + if is_virtual: + layout.label(text="Parting not available with virtual parents") + col = layout.column() + col.active = not is_virtual col.prop(part, "child_parting_factor", text="Parting", slider=True) - col.prop(part, "child_parting_min", text="Min") - col.prop(part, "child_parting_max", text="Max") + + sub = col.column(align=True) + sub.prop(part, "child_parting_min", text="Min") + sub.prop(part, "child_parting_max", text="Max") class PARTICLE_PT_children_clumping(ParticleButtonsPanel, Panel): |