diff options
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; } |