mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
hiero: PR suggestion
https://github.com/pypeclub/OpenPype/pull/3224#discussion_r882588237
This commit is contained in:
parent
c5787b8992
commit
ae233ce80c
1 changed files with 10 additions and 9 deletions
|
|
@ -941,6 +941,10 @@ def is_overlapping(ti_test, ti_original, strict=False):
|
|||
(ti_test.timelineIn() <= ti_original.timelineIn())
|
||||
and (ti_test.timelineOut() >= ti_original.timelineOut())
|
||||
)
|
||||
|
||||
if strict:
|
||||
return covering_exp
|
||||
|
||||
inside_exp = (
|
||||
(ti_test.timelineIn() >= ti_original.timelineIn())
|
||||
and (ti_test.timelineOut() <= ti_original.timelineOut())
|
||||
|
|
@ -954,15 +958,12 @@ def is_overlapping(ti_test, ti_original, strict=False):
|
|||
and (ti_test.timelineIn() <= ti_original.timelineIn())
|
||||
)
|
||||
|
||||
if strict:
|
||||
return covering_exp
|
||||
else:
|
||||
return any((
|
||||
covering_exp,
|
||||
inside_exp,
|
||||
overlaying_right_exp,
|
||||
overlaying_left_exp
|
||||
))
|
||||
return any((
|
||||
covering_exp,
|
||||
inside_exp,
|
||||
overlaying_right_exp,
|
||||
overlaying_left_exp
|
||||
))
|
||||
|
||||
|
||||
def get_sequence_pattern_and_padding(file):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue