diff options
author | Joshua Leung <aligorith@gmail.com> | 2009-06-02 05:40:53 +0400 |
---|---|---|
committer | Joshua Leung <aligorith@gmail.com> | 2009-06-02 05:40:53 +0400 |
commit | 37f47ef3862a85d4d95fe5b18ab3d6b9c88ccdd3 (patch) | |
tree | a648a61fbbc313c2833a5e4eb3c8d8d75da3c090 /release/ui/buttons_particle.py | |
parent | 33267f58581ea8f9d89028958c6e64a8d048d4db (diff) | |
parent | a117731aa23c25d699c405325c7bb7ac5680a5e7 (diff) |
NLA SoC: Merge from 2.5 20441 to 20570 (HEAD)
There were a few conflicts/missing files. Hopefully everything updated ok...
Diffstat (limited to 'release/ui/buttons_particle.py')
-rw-r--r-- | release/ui/buttons_particle.py | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/release/ui/buttons_particle.py b/release/ui/buttons_particle.py new file mode 100644 index 00000000000..52e20b03538 --- /dev/null +++ b/release/ui/buttons_particle.py @@ -0,0 +1,26 @@ + +import bpy + +class ParticleButtonsPanel(bpy.types.Panel): + __space_type__ = "BUTTONS_WINDOW" + __region_type__ = "WINDOW" + __context__ = "particle" + + def poll(self, context): + ob = context.active_object + return (ob and ob.active_particle_system) + +class PARTICLE_PT_particles(ParticleButtonsPanel): + __idname__= "PARTICLE_PT_particles" + __label__ = "Particles" + + def draw(self, context): + layout = self.layout + + psys = context.active_object.active_particle_system + part = psys.settings + + layout.itemR(part, "amount") + +bpy.types.register(PARTICLE_PT_particles) + |