[Bf-blender-cvs] [51a9272] temp_merge_gooseberry_hair: Added a "specials" menu button next to the particle systems list for accessing the copy operator.

Lukas Tönne noreply at git.blender.org
Mon Jan 19 20:52:08 CET 2015


Commit: 51a92722c58f7915b37b9c688593794d4352b607
Author: Lukas Tönne
Date:   Thu Jan 15 12:53:28 2015 +0100
Branches: temp_merge_gooseberry_hair
https://developer.blender.org/rB51a92722c58f7915b37b9c688593794d4352b607

Added a "specials" menu button next to the particle systems list for
accessing the copy operator.

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

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 2f07942..9ab6cc3 100644
--- a/release/scripts/startup/bl_ui/properties_particle.py
+++ b/release/scripts/startup/bl_ui/properties_particle.py
@@ -63,6 +63,16 @@ def particle_get_settings(context):
     return None
 
 
+class PARTICLE_MT_specials(Menu):
+    bl_label = "Particle Specials"
+    COMPAT_ENGINES = {'BLENDER_RENDER', 'BLENDER_GAME'}
+
+    def draw(self, context):
+        layout = self.layout
+
+        layout.operator("particle.copy_particle_systems")
+
+
 class PARTICLE_MT_hair_dynamics_presets(Menu):
     bl_label = "Hair Dynamics Presets"
     preset_subdir = "hair_dynamics"
@@ -111,6 +121,7 @@ class PARTICLE_PT_context_particles(ParticleButtonsPanel, Panel):
             col = row.column(align=True)
             col.operator("object.particle_system_add", icon='ZOOMIN', text="")
             col.operator("object.particle_system_remove", icon='ZOOMOUT', text="")
+            col.menu("PARTICLE_MT_specials", icon='DOWNARROW_HLT', text="")
 
         if psys is None:
             part = particle_get_settings(context)




More information about the Bf-blender-cvs mailing list