Fix sequencer sample poll function
Sequencer poll was succeeding outside of a preview region. This meant it couldn't be used in tool key maps which are currently shared between preview & sequencer regions.
This commit is contained in:
parent
df8f507f41
commit
0e590f9078
|
@ -565,6 +565,10 @@ bool ED_imbuf_sample_poll(bContext *C)
|
|||
if (SEQ_editing_get(CTX_data_scene(C)) == NULL) {
|
||||
return false;
|
||||
}
|
||||
ARegion *region = CTX_wm_region(C);
|
||||
if (!(region && (region->regiontype == RGN_TYPE_PREVIEW))) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue