Fix condition

This commit is contained in:
Petr Kalis 2025-04-23 14:53:56 +02:00
parent f73c6eccef
commit fe78983491

View file

@ -625,7 +625,6 @@ class ExtractReview(pyblish.api.InstancePlugin):
input_allow_bg = False
first_sequence_frame = None
ext = os.path.splitext(repre["files"])[1].replace(".", "")
if input_is_sequence and repre["files"]:
# Calculate first frame that should be used
cols, _ = clique.assemble(repre["files"])
@ -644,6 +643,8 @@ class ExtractReview(pyblish.api.InstancePlugin):
ext = os.path.splitext(repre["files"][0])[1].replace(".", "")
if ext.lower() in self.alpha_exts:
input_allow_bg = True
else:
ext = os.path.splitext(repre["files"])[1].replace(".", "")
return {
"fps": float(instance.data["fps"]),