diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-06-03 17:10:44 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-06-03 17:10:44 +0300 |
commit | 7b28a31f2c3a6bd28b465f6a48d9ee064ecb5176 (patch) | |
tree | a20a7e1c1559a9524a63fcfd07f0afcf8a056483 /source/blender/makesrna/intern/rna_access.c | |
parent | d5f6e573ed43521e497c83eff02f828aea1a35c9 (diff) |
Cleanup: style, use braces in makesrna
Diffstat (limited to 'source/blender/makesrna/intern/rna_access.c')
-rw-r--r-- | source/blender/makesrna/intern/rna_access.c | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/source/blender/makesrna/intern/rna_access.c b/source/blender/makesrna/intern/rna_access.c index 20358ca80fd..a9ba1730216 100644 --- a/source/blender/makesrna/intern/rna_access.c +++ b/source/blender/makesrna/intern/rna_access.c @@ -4594,20 +4594,23 @@ static int rna_raw_access(ReportList *reports, if (set) { switch (itemtype) { case PROP_BOOLEAN: { - for (j = 0; j < itemlen; j++, a++) + for (j = 0; j < itemlen; j++, a++) { RAW_GET(bool, ((bool *)tmparray)[j], in, a); + } RNA_property_boolean_set_array(&itemptr, iprop, tmparray); break; } case PROP_INT: { - for (j = 0; j < itemlen; j++, a++) + for (j = 0; j < itemlen; j++, a++) { RAW_GET(int, ((int *)tmparray)[j], in, a); + } RNA_property_int_set_array(&itemptr, iprop, tmparray); break; } case PROP_FLOAT: { - for (j = 0; j < itemlen; j++, a++) + for (j = 0; j < itemlen; j++, a++) { RAW_GET(float, ((float *)tmparray)[j], in, a); + } RNA_property_float_set_array(&itemptr, iprop, tmparray); break; } @@ -4619,20 +4622,23 @@ static int rna_raw_access(ReportList *reports, switch (itemtype) { case PROP_BOOLEAN: { RNA_property_boolean_get_array(&itemptr, iprop, tmparray); - for (j = 0; j < itemlen; j++, a++) + for (j = 0; j < itemlen; j++, a++) { RAW_SET(int, in, a, ((bool *)tmparray)[j]); + } break; } case PROP_INT: { RNA_property_int_get_array(&itemptr, iprop, tmparray); - for (j = 0; j < itemlen; j++, a++) + for (j = 0; j < itemlen; j++, a++) { RAW_SET(int, in, a, ((int *)tmparray)[j]); + } break; } case PROP_FLOAT: { RNA_property_float_get_array(&itemptr, iprop, tmparray); - for (j = 0; j < itemlen; j++, a++) + for (j = 0; j < itemlen; j++, a++) { RAW_SET(float, in, a, ((float *)tmparray)[j]); + } break; } default: |