Particles

=========

- Like sculptmode, a brush can now be selected from a menu with
  Ctrl+Tab in particle mode.
This commit is contained in:
Brecht Van Lommel
2007-12-04 14:21:58 +00:00
parent 32a8b4f8e6
commit 114e3f35c3
3 changed files with 18 additions and 0 deletions

View File

@@ -81,6 +81,7 @@ int PE_brush_particles(void);
void PE_delete_particle(void);
void PE_remove_doubles(void);
void PE_mirror_x(int tagged);
void PE_selectbrush_menu(void);
/* undo */
void PE_undo_push(char *str);

View File

@@ -2768,6 +2768,21 @@ void PE_mirror_x(int tagged)
}
}
void PE_selectbrush_menu(void)
{
ParticleEditSettings *pset= PE_settings();
int val;
pupmenu_set_active(pset->brushtype);
val= pupmenu("Select Brush%t|None %x0|Comb %x1|Smooth %x7|Weight %x6|Add %x5|Length %x3|Puff %x4|Cut %x2");
if(val>=0) {
pset->brushtype= val-1;
allqueue(REDRAWVIEW3D, 1);
}
}
/************************************************/
/* Particle Edit Undo */
/************************************************/

View File

@@ -735,6 +735,8 @@ int blenderqread(unsigned short event, short val)
}
else if(ob->type==OB_MESH) {
if(ob==G.obedit) EM_selectmode_menu();
else if(G.f & G_PARTICLEEDIT)
PE_selectbrush_menu();
else if(G.f & G_SCULPTMODE)
sculptmode_selectbrush_menu();
else set_wpaint();