Generalized the sculptmode propset (DKEY) to work with strength as well as

brush size. Pressing the key once does brush size (same as before), then
pressing it a second time switches to setting brush strength.
This commit is contained in:
2006-11-18 21:01:25 +00:00
parent 681346188f
commit 0d08181c35
5 changed files with 136 additions and 59 deletions

View File

@@ -37,11 +37,19 @@ struct Object;
struct Scene;
struct ScrArea;
typedef enum PropsetMode {
PropsetNone = 0,
PropsetSize,
PropsetStrength
} PropsetMode;
typedef struct PropsetData {
PropsetMode mode;
unsigned int tex;
short origloc[2];
float *texdata;
short origsize;
char origstrength;
unsigned int tex;
} PropsetData;
/* Memory */
@@ -58,6 +66,7 @@ void sculptmode_undo_menu();
void sculptmode_draw_interface_tools(struct uiBlock *block,unsigned short cx, unsigned short cy);
void sculptmode_draw_interface_textures(struct uiBlock *block,unsigned short cx, unsigned short cy);
void sculptmode_rem_tex(void*,void*);
void sculptmode_propset_init(unsigned short key);
void sculptmode_propset(const unsigned short event);
void sculptmode_selectbrush_menu();
void sculptmode_draw_mesh();