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-06-03 17:21:57 +0300
committerCampbell Barton <ideasman42@gmail.com>2019-06-03 17:24:38 +0300
commit1f650c402d3b43eee7cb51c7d4f373ba82ac2116 (patch)
treeba2432fe9424ae545d3758d37ec8ebb0419a2ba5 /source/blender/makesrna/intern/rna_action.c
parente3f2034e7b925bc7e31e65051842cf26d70a20bc (diff)
Cleanup: style, use braces in RNA
Diffstat (limited to 'source/blender/makesrna/intern/rna_action.c')
-rw-r--r--source/blender/makesrna/intern/rna_action.c18
1 files changed, 12 insertions, 6 deletions
diff --git a/source/blender/makesrna/intern/rna_action.c b/source/blender/makesrna/intern/rna_action.c
index 4e98db21089..ba5355a8d95 100644
--- a/source/blender/makesrna/intern/rna_action.c
+++ b/source/blender/makesrna/intern/rna_action.c
@@ -59,10 +59,12 @@ static void rna_ActionGroup_channels_next(CollectionPropertyIterator *iter)
bActionGroup *grp = fcu->grp;
/* only continue if the next F-Curve (if existent) belongs in the same group */
- if ((fcu->next) && (fcu->next->grp == grp))
+ if ((fcu->next) && (fcu->next->grp == grp)) {
internal->link = (Link *)fcu->next;
- else
+ }
+ else {
internal->link = NULL;
+ }
iter->valid = (internal->link != NULL);
}
@@ -112,8 +114,9 @@ static FCurve *rna_Action_fcurve_new(bAction *act,
int index,
const char *group)
{
- if (group && group[0] == '\0')
+ if (group && group[0] == '\0') {
group = NULL;
+ }
if (data_path[0] == '\0') {
BKE_report(reports, RPT_ERROR, "F-Curve data path empty, invalid argument");
@@ -261,10 +264,12 @@ bool rna_Action_id_poll(PointerRNA *ptr, PointerRNA value)
* (i.e. floating "action-library" members) which we will not
* be able to resolve an idroot for automatically, so let these through
*/
- if (act->idroot == 0)
+ if (act->idroot == 0) {
return 1;
- else if (srcId)
+ }
+ else if (srcId) {
return GS(srcId->name) == act->idroot;
+ }
}
return 0;
@@ -282,8 +287,9 @@ bool rna_Action_actedit_assign_poll(PointerRNA *ptr, PointerRNA value)
* (i.e. floating "action-library" members) which we will not
* be able to resolve an idroot for automatically, so let these through
*/
- if (act->idroot == 0)
+ if (act->idroot == 0) {
return 1;
+ }
if (saction) {
if (saction->mode == SACTCONT_ACTION) {