diff options
author | Pablo Vazquez <venomgfx@gmail.com> | 2018-10-31 20:38:53 +0300 |
---|---|---|
committer | Pablo Vazquez <venomgfx@gmail.com> | 2018-10-31 20:39:01 +0300 |
commit | acecadf16a4e16b5eb5f43eb26b19a6d18619c10 (patch) | |
tree | f9cb391d31adf6578d6128e8890efd8a2b0bff71 /release | |
parent | f4bc205a329cc9aab28ac4669c338e5a367d3826 (diff) |
UI: Particles improvements
* Icons in specials menu (Copy and the new Duplicate icon)
* Remove redundant "Settings" label next to ID template widget.
* Remove "Type" label and expand dropdown, since it only has 2 options (emitter/hair), saves 1 click.
* Move "Seed" to and "Hair Segments" to Emission panel
* Rename "Duplicate Particle Systems" to "Duplicate Particle System", since it
only duplicates one (the active one) at a time.
Diffstat (limited to 'release')
-rw-r--r-- | release/scripts/startup/bl_ui/properties_particle.py | 39 |
1 files changed, 16 insertions, 23 deletions
diff --git a/release/scripts/startup/bl_ui/properties_particle.py b/release/scripts/startup/bl_ui/properties_particle.py index 68b7c5c7187..ffd32c5da64 100644 --- a/release/scripts/startup/bl_ui/properties_particle.py +++ b/release/scripts/startup/bl_ui/properties_particle.py @@ -72,7 +72,7 @@ class PARTICLE_MT_specials(Menu): def draw(self, context): layout = self.layout - props = layout.operator("particle.copy_particle_systems", text="Copy Active to Selected Objects") + props = layout.operator("particle.copy_particle_systems", text="Copy Active to Selected Objects", icon="COPYDOWN") props.use_active = True props.remove_target_particles = False @@ -80,7 +80,9 @@ class PARTICLE_MT_specials(Menu): props.use_active = False props.remove_target_particles = True - layout.operator("particle.duplicate_particle_system") + layout.separator() + + layout.operator("particle.duplicate_particle_system", icon="DUPLICATE") class PARTICLE_PT_hair_dynamics_presets(PresetMenu): @@ -160,11 +162,14 @@ class PARTICLE_PT_context_particles(ParticleButtonsPanel, Panel): row = layout.row() row.template_list("PARTICLE_UL_particle_systems", "particle_systems", ob, "particle_systems", - ob.particle_systems, "active_index", rows=2) + ob.particle_systems, "active_index", rows=3) col = row.column(align=True) col.operator("object.particle_system_add", icon='ADD', text="") col.operator("object.particle_system_remove", icon='REMOVE', text="") + + col.separator() + col.menu("PARTICLE_MT_specials", icon='DOWNARROW_HLT', text="") if psys is None: @@ -184,23 +189,12 @@ class PARTICLE_PT_context_particles(ParticleButtonsPanel, Panel): layout.prop(part, "type", text="Type") elif not psys.settings: - split = layout.split(factor=0.32) - - col = split.column() - col.label(text="Settings:") - - col = split.column() col.template_ID(psys, "settings", new="particle.new") else: part = psys.settings - split = layout.split(factor=0.32) - col = split.column() - if part.is_fluid is False: - col.label(text="Settings:") - col.label(text="Type:") + col = layout.column() - col = split.column() if part.is_fluid is False: row = col.row() row.enabled = particle_panel_enabled(context, psys) @@ -210,13 +204,12 @@ class PARTICLE_PT_context_particles(ParticleButtonsPanel, Panel): layout.label(text=iface_("%d fluid particles for this frame") % part.count, translate=False) return - row = col.row() + row = layout.row() row.enabled = particle_panel_enabled(context, psys) - row.prop(part, "type", text="") - row.prop(psys, "seed") + row.prop(part, "type", expand=True) if part: - split = layout.split(factor=0.65) + split = layout.split() if part.type == 'HAIR': if psys is not None and psys.is_edited: split.operator("particle.edited_clear", text="Free Edit") @@ -225,9 +218,7 @@ class PARTICLE_PT_context_particles(ParticleButtonsPanel, Panel): row.enabled = particle_panel_enabled(context, psys) row.prop(part, "regrow_hair") row.prop(part, "use_advanced_hair") - row = split.row() - row.enabled = particle_panel_enabled(context, psys) - row.prop(part, "hair_step") + if psys is not None and psys.is_edited: if psys.is_global_hair: row = layout.row(align=True) @@ -273,11 +264,13 @@ class PARTICLE_PT_emission(ParticleButtonsPanel, Panel): col = layout.column() col.active = part.emit_from == 'VERT' or part.distribution != 'GRID' col.prop(part, "count") + col.prop(psys, "seed") if part.type == 'HAIR': col.prop(part, "hair_length") + col.prop(part, "hair_step") + if not part.use_advanced_hair: - layout.row() # is this needed? col.prop(part, "use_modifier_stack") return |