diff options
author | Campbell Barton <ideasman42@gmail.com> | 2014-04-07 11:00:08 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2014-04-07 11:00:08 +0400 |
commit | b95e8268412eebffdf9c6b9d6ba63aab780bec06 (patch) | |
tree | e7f3f04802c33c5ef01ad2a0f8ee66a1ae6da50f /source/blender/blenkernel/BKE_paint.h | |
parent | e51841cbca2ab4be47fc5dcfa36857505bb114da (diff) |
Code cleanup: remove unused functions and convert int -> bool
Diffstat (limited to 'source/blender/blenkernel/BKE_paint.h')
-rw-r--r-- | source/blender/blenkernel/BKE_paint.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/source/blender/blenkernel/BKE_paint.h b/source/blender/blenkernel/BKE_paint.h index 12c4e0b8435..60c448608d7 100644 --- a/source/blender/blenkernel/BKE_paint.h +++ b/source/blender/blenkernel/BKE_paint.h @@ -126,7 +126,7 @@ typedef struct SculptSession { struct MPoly *mpoly; struct MLoop *mloop; int totvert, totpoly; - float *face_normals; + float (*face_normals)[3]; struct KeyBlock *kb; float *vmask; @@ -135,7 +135,7 @@ typedef struct SculptSession { /* BMesh for dynamic topology sculpting */ struct BMesh *bm; - int bm_smooth_shading; + bool bm_smooth_shading; /* Undo/redo log for dynamic topology sculpting */ struct BMLog *bm_log; @@ -144,13 +144,13 @@ typedef struct SculptSession { bool show_diffuse_color; /* Paiting on deformed mesh */ - int modifiers_active; /* object is deformed with some modifiers */ + bool modifiers_active; /* object is deformed with some modifiers */ float (*orig_cos)[3]; /* coords of undeformed mesh */ float (*deform_cos)[3]; /* coords of deformed mesh but without stroke displacement */ float (*deform_imats)[3][3]; /* crazyspace deformation matrices */ /* Partial redraw */ - int partial_redraw; + bool partial_redraw; /* Used to cache the render of the active texture */ unsigned int texcache_side, *texcache, texcache_actual; @@ -163,7 +163,7 @@ typedef struct SculptSession { struct StrokeCache *cache; /* last paint/sculpt stroke location */ - int last_stroke_valid; + bool last_stroke_valid; float last_stroke[3]; float average_stroke_accum[3]; |