Fix T38347: adding object visibility keyframes in the outliner groups and

libraries view not working.

This was disabled in the operator, there may have been a reason for this at
some point, but I can't see any reason to disallow it in the current code or
find a good reason why it was done in the commit logs.
This commit is contained in:
Brecht Van Lommel 2014-01-24 16:07:29 +01:00
parent 01c1790a11
commit 257f408864
Notes: blender-bot 2023-02-14 11:18:02 +01:00
Referenced by issue #38347, Outliner : adding keyframes whilst having it organised by groups does not work
1 changed files with 0 additions and 10 deletions

View File

@ -1249,21 +1249,11 @@ static int modify_key_op_poll(bContext *C)
{
ScrArea *sa = CTX_wm_area(C);
Scene *scene = CTX_data_scene(C);
SpaceOops *so = CTX_wm_space_outliner(C);
/* if no area or active scene */
if (ELEM(NULL, sa, scene))
return 0;
/* if Outliner, don't allow in some views */
if (so) {
if (ELEM4(so->outlinevis, SO_GROUPS, SO_LIBRARIES, SO_SEQUENCE, SO_USERDEF)) {
return 0;
}
}
/* TODO: checks for other space types can be added here */
/* should be fine */
return 1;
}