[Bf-blender-cvs] [9151f5d] master: UI: Add a "New" button for the particle system, consistent to other areas like materials, world and textures.

Andrew Buttery noreply at git.blender.org
Sun Jan 12 00:39:59 CET 2014


Commit: 9151f5d22782dcab4fc087bb9259768a85c8ed09
Author: Andrew Buttery
Date:   Sun Jan 12 00:39:15 2014 +0100
https://developer.blender.org/rB9151f5d22782dcab4fc087bb9259768a85c8ed09

UI: Add a "New" button for the particle system, consistent to other areas like materials, world and textures.

Differential Revision: https://developer.blender.org/D171

===================================================================

M	release/scripts/startup/bl_ui/properties_particle.py

===================================================================

diff --git a/release/scripts/startup/bl_ui/properties_particle.py b/release/scripts/startup/bl_ui/properties_particle.py
index f66364a..97ea332 100644
--- a/release/scripts/startup/bl_ui/properties_particle.py
+++ b/release/scripts/startup/bl_ui/properties_particle.py
@@ -107,6 +107,8 @@ class PARTICLE_PT_context_particles(ParticleButtonsPanel, Panel):
         if psys is None:
             part = particle_get_settings(context)
 
+            layout.operator("object.particle_system_add", icon='ZOOMIN', text="New")
+
             if part is None:
                 return




More information about the Bf-blender-cvs mailing list