Particles
========= - Like sculptmode, a brush can now be selected from a menu with Ctrl+Tab in particle mode.
This commit is contained in:
@@ -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);
|
||||
|
@@ -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 */
|
||||
/************************************************/
|
||||
|
@@ -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();
|
||||
|
Reference in New Issue
Block a user