diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-04-17 07:17:24 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-04-17 07:21:24 +0300 |
commit | e12c08e8d170b7ca40f204a5b0423c23a9fbc2c1 (patch) | |
tree | 8cf3453d12edb177a218ef8009357518ec6cab6a /source/blender/editors/physics/particle_edit_utildefines.h | |
parent | b3dabc200a4b0399ec6b81f2ff2730d07b44fcaa (diff) |
ClangFormat: apply to source, most of intern
Apply clang format as proposed in T53211.
For details on usage and instructions for migrating branches
without conflicts, see:
https://wiki.blender.org/wiki/Tools/ClangFormat
Diffstat (limited to 'source/blender/editors/physics/particle_edit_utildefines.h')
-rw-r--r-- | source/blender/editors/physics/particle_edit_utildefines.h | 48 |
1 files changed, 34 insertions, 14 deletions
diff --git a/source/blender/editors/physics/particle_edit_utildefines.h b/source/blender/editors/physics/particle_edit_utildefines.h index afdeb5e985c..da27420505f 100644 --- a/source/blender/editors/physics/particle_edit_utildefines.h +++ b/source/blender/editors/physics/particle_edit_utildefines.h @@ -24,19 +24,39 @@ #ifndef __PARTICLE_EDIT_UTILDEFNIES_H__ #define __PARTICLE_EDIT_UTILDEFNIES_H__ -#define KEY_K PTCacheEditKey *key; int k -#define POINT_P PTCacheEditPoint *point; int p -#define LOOP_POINTS for (p = 0, point = edit->points; p < edit->totpoint; p++, point++) -#define LOOP_VISIBLE_POINTS for (p = 0, point = edit->points; p < edit->totpoint; p++, point++) if (!(point->flag & PEP_HIDE)) -#define LOOP_SELECTED_POINTS for (p = 0, point = edit->points; p < edit->totpoint; p++, point++) if (point_is_selected(point)) -#define LOOP_UNSELECTED_POINTS for (p = 0, point = edit->points; p < edit->totpoint; p++, point++) if (!point_is_selected(point)) -#define LOOP_EDITED_POINTS for (p = 0, point = edit->points; p < edit->totpoint; p++, point++) if (point->flag & PEP_EDIT_RECALC) -#define LOOP_TAGGED_POINTS for (p = 0, point = edit->points; p < edit->totpoint; p++, point++) if (point->flag & PEP_TAG) -#define LOOP_KEYS for (k = 0, key = point->keys; k < point->totkey; k++, key++) -#define LOOP_VISIBLE_KEYS for (k = 0, key = point->keys; k < point->totkey; k++, key++) if (!(key->flag & PEK_HIDE)) -#define LOOP_SELECTED_KEYS for (k = 0, key = point->keys; k < point->totkey; k++, key++) if ((key->flag & PEK_SELECT) && !(key->flag & PEK_HIDE)) -#define LOOP_TAGGED_KEYS for (k = 0, key = point->keys; k < point->totkey; k++, key++) if (key->flag & PEK_TAG) +#define KEY_K \ + PTCacheEditKey *key; \ + int k +#define POINT_P \ + PTCacheEditPoint *point; \ + int p +#define LOOP_POINTS for (p = 0, point = edit->points; p < edit->totpoint; p++, point++) +#define LOOP_VISIBLE_POINTS \ + for (p = 0, point = edit->points; p < edit->totpoint; p++, point++) \ + if (!(point->flag & PEP_HIDE)) +#define LOOP_SELECTED_POINTS \ + for (p = 0, point = edit->points; p < edit->totpoint; p++, point++) \ + if (point_is_selected(point)) +#define LOOP_UNSELECTED_POINTS \ + for (p = 0, point = edit->points; p < edit->totpoint; p++, point++) \ + if (!point_is_selected(point)) +#define LOOP_EDITED_POINTS \ + for (p = 0, point = edit->points; p < edit->totpoint; p++, point++) \ + if (point->flag & PEP_EDIT_RECALC) +#define LOOP_TAGGED_POINTS \ + for (p = 0, point = edit->points; p < edit->totpoint; p++, point++) \ + if (point->flag & PEP_TAG) +#define LOOP_KEYS for (k = 0, key = point->keys; k < point->totkey; k++, key++) +#define LOOP_VISIBLE_KEYS \ + for (k = 0, key = point->keys; k < point->totkey; k++, key++) \ + if (!(key->flag & PEK_HIDE)) +#define LOOP_SELECTED_KEYS \ + for (k = 0, key = point->keys; k < point->totkey; k++, key++) \ + if ((key->flag & PEK_SELECT) && !(key->flag & PEK_HIDE)) +#define LOOP_TAGGED_KEYS \ + for (k = 0, key = point->keys; k < point->totkey; k++, key++) \ + if (key->flag & PEK_TAG) -#define KEY_WCO ((key->flag & PEK_USE_WCO) ? key->world_co : key->co) +#define KEY_WCO ((key->flag & PEK_USE_WCO) ? key->world_co : key->co) -#endif /* __PARTICLE_EDIT_UTILDEFNIES_H__ */ +#endif /* __PARTICLE_EDIT_UTILDEFNIES_H__ */ |