Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2018-08-14 03:14:05 +0300
committerCampbell Barton <ideasman42@gmail.com>2018-08-14 03:14:05 +0300
commitc29c426925311eeb79e3988609e914e72b61013b (patch)
tree3af461685471f986b97bb9faa72c51ef48b522f4 /source/blender/editors/physics
parent98f4a8eedf218c240adbac586fed02cfe51e01a9 (diff)
Cleanup: use braces w/ particle loop macros
Diffstat (limited to 'source/blender/editors/physics')
-rw-r--r--source/blender/editors/physics/particle_edit.c26
1 files changed, 16 insertions, 10 deletions
diff --git a/source/blender/editors/physics/particle_edit.c b/source/blender/editors/physics/particle_edit.c
index 5699c1f59f8..ad4c377879d 100644
--- a/source/blender/editors/physics/particle_edit.c
+++ b/source/blender/editors/physics/particle_edit.c
@@ -1141,25 +1141,29 @@ static void PE_update_selection(Main *bmain, Scene *scene, Object *ob, int usefl
/* flag all particles to be updated if not using flag */
if (!useflag)
- LOOP_POINTS
- point->flag |= PEP_EDIT_RECALC;
+ LOOP_POINTS {
+ point->flag |= PEP_EDIT_RECALC;
+ }
/* flush edit key flag to hair key flag to preserve selection
* on save */
- if (edit->psys) LOOP_POINTS {
+ if (edit->psys) {
+ LOOP_POINTS {
hkey = edit->psys->particles[p].hair;
LOOP_KEYS {
hkey->editflag = key->flag;
hkey++;
}
}
+ }
- psys_cache_edit_paths(scene, ob, edit, CFRA, G.is_rendering);
+ psys_cache_edit_paths(scene, ob, edit, CFRA, G.is_rendering);
/* disable update flag */
- LOOP_POINTS
- point->flag &= ~PEP_EDIT_RECALC;
+ LOOP_POINTS {
+ point->flag &= ~PEP_EDIT_RECALC;
+ }
}
void update_world_cos(Object *ob, PTCacheEdit *edit)
@@ -1894,8 +1898,9 @@ static int hide_exec(bContext *C, wmOperator *op)
point->flag |= PEP_HIDE;
point->flag |= PEP_EDIT_RECALC;
- LOOP_KEYS
- key->flag &= ~PEK_SELECT;
+ LOOP_KEYS {
+ key->flag &= ~PEK_SELECT;
+ }
}
}
else {
@@ -1903,8 +1908,9 @@ static int hide_exec(bContext *C, wmOperator *op)
point->flag |= PEP_HIDE;
point->flag |= PEP_EDIT_RECALC;
- LOOP_KEYS
- key->flag &= ~PEK_SELECT;
+ LOOP_KEYS {
+ key->flag &= ~PEK_SELECT;
+ }
}
}