diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-04-22 02:19:45 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-04-22 12:48:16 +0300 |
commit | 620b960d3d8cfd90b9f0df6ba3671c33eccb8309 (patch) | |
tree | 64f69db4bf9d44f0a32d1c92b0714bf2dc98ff2d /source/blender/editors/space_nla/nla_ops.c | |
parent | bba60bb564cf5a16cfcac744d4ba82cf8eba3da9 (diff) |
Cleanup: style, use braces for editors
Diffstat (limited to 'source/blender/editors/space_nla/nla_ops.c')
-rw-r--r-- | source/blender/editors/space_nla/nla_ops.c | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/source/blender/editors/space_nla/nla_ops.c b/source/blender/editors/space_nla/nla_ops.c index 9c2eb541f52..55470388e22 100644 --- a/source/blender/editors/space_nla/nla_ops.c +++ b/source/blender/editors/space_nla/nla_ops.c @@ -56,12 +56,14 @@ bool nlaop_poll_tweakmode_off(bContext *C) * but not all AnimData blocks will be in tweakmode for * various reasons */ - if (ED_operator_nla_active(C) == 0) + if (ED_operator_nla_active(C) == 0) { return 0; + } scene = CTX_data_scene(C); - if ((scene == NULL) || (scene->flag & SCE_NLA_EDIT_ON)) + if ((scene == NULL) || (scene->flag & SCE_NLA_EDIT_ON)) { return 0; + } return 1; } @@ -78,12 +80,14 @@ bool nlaop_poll_tweakmode_on(bContext *C) * but not all AnimData blocks will be in tweakmode for * various reasons */ - if (ED_operator_nla_active(C) == 0) + if (ED_operator_nla_active(C) == 0) { return 0; + } scene = CTX_data_scene(C); - if ((scene == NULL) || !(scene->flag & SCE_NLA_EDIT_ON)) + if ((scene == NULL) || !(scene->flag & SCE_NLA_EDIT_ON)) { return 0; + } return 1; } @@ -91,8 +95,9 @@ bool nlaop_poll_tweakmode_on(bContext *C) /* is tweakmode enabled - for use in NLA operator code */ bool nlaedit_is_tweakmode_on(bAnimContext *ac) { - if (ac && ac->scene) + if (ac && ac->scene) { return (ac->scene->flag & SCE_NLA_EDIT_ON) != 0; + } return 0; } |