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>2019-05-31 16:21:16 +0300
committerCampbell Barton <ideasman42@gmail.com>2019-05-31 16:22:52 +0300
commitaba4e6810f8b4d0e459137b64e061a2cadc457d1 (patch)
tree2b6159c7ba0f23c020600b71276772fa4a882b5b /source/blender/blenkernel/intern/ipo.c
parent72a563cdee8fef198a200ff65b57ddb847c01795 (diff)
Cleanup: style, use braces in source/ (include disabled blocks)
Diffstat (limited to 'source/blender/blenkernel/intern/ipo.c')
-rw-r--r--source/blender/blenkernel/intern/ipo.c42
1 files changed, 28 insertions, 14 deletions
diff --git a/source/blender/blenkernel/intern/ipo.c b/source/blender/blenkernel/intern/ipo.c
index 63ef1458de8..34b1f2e1837 100644
--- a/source/blender/blenkernel/intern/ipo.c
+++ b/source/blender/blenkernel/intern/ipo.c
@@ -239,28 +239,34 @@ static const char *ob_adrcodes_to_paths(int adrcode, int *array_index)
return "color";
#if 0
case OB_PD_FSTR:
- if (ob->pd)
+ if (ob->pd) {
poin = &(ob->pd->f_strength);
+ }
break;
case OB_PD_FFALL:
- if (ob->pd)
+ if (ob->pd) {
poin = &(ob->pd->f_power);
+ }
break;
case OB_PD_SDAMP:
- if (ob->pd)
+ if (ob->pd) {
poin = &(ob->pd->pdef_damp);
+ }
break;
case OB_PD_RDAMP:
- if (ob->pd)
+ if (ob->pd) {
poin = &(ob->pd->pdef_rdamp);
+ }
break;
case OB_PD_PERM:
- if (ob->pd)
+ if (ob->pd) {
poin = &(ob->pd->pdef_perm);
+ }
break;
case OB_PD_FMAXD:
- if (ob->pd)
+ if (ob->pd) {
poin = &(ob->pd->maxdist);
+ }
break;
#endif
}
@@ -688,10 +694,12 @@ static const char *camera_adrcodes_to_paths(int adrcode, int *array_index)
case CAM_LENS:
#if 0 /* XXX this cannot be resolved easily... \
* perhaps we assume camera is perspective (works for most cases... */
- if (ca->type == CAM_ORTHO)
+ if (ca->type == CAM_ORTHO) {
return "ortho_scale";
- else
+ }
+ else {
return "lens";
+ }
#else // XXX lazy hack for now...
return "lens";
#endif // XXX this cannot be resolved easily
@@ -884,28 +892,34 @@ static const char *particle_adrcodes_to_paths(int adrcode, int *array_index)
* as the similar object forces */
#if 0
case PART_PD_FSTR:
- if (part->pd)
+ if (part->pd) {
poin = &(part->pd->f_strength);
+ }
break;
case PART_PD_FFALL:
- if (part->pd)
+ if (part->pd) {
poin = &(part->pd->f_power);
+ }
break;
case PART_PD_FMAXD:
- if (part->pd)
+ if (part->pd) {
poin = &(part->pd->maxdist);
+ }
break;
case PART_PD2_FSTR:
- if (part->pd2)
+ if (part->pd2) {
poin = &(part->pd2->f_strength);
+ }
break;
case PART_PD2_FFALL:
- if (part->pd2)
+ if (part->pd2) {
poin = &(part->pd2->f_power);
+ }
break;
case PART_PD2_FMAXD:
- if (part->pd2)
+ if (part->pd2) {
poin = &(part->pd2->maxdist);
+ }
break;
#endif
}