create context to work only with a selected strip
parent
c623f3e0a8
commit
9099b23a12
|
@ -449,6 +449,10 @@ class VSETB_OT_open_shot_on_tracker(Operator):
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def poll(cls, context):
|
def poll(cls, context):
|
||||||
|
if not context.active_sequence_strip:
|
||||||
|
cls.poll_message_set('No active')
|
||||||
|
return
|
||||||
|
|
||||||
prefs = get_addon_prefs()
|
prefs = get_addon_prefs()
|
||||||
if prefs.tracker:
|
if prefs.tracker:
|
||||||
return True
|
return True
|
||||||
|
|
Loading…
Reference in New Issue