Fix - method expects dict not id

This commit is contained in:
Petr Kalis 2022-07-25 13:49:15 +02:00
parent 33464794be
commit a96bfc45ad
3 changed files with 3 additions and 3 deletions

View file

@ -300,7 +300,7 @@ class BackgroundLoader(load.LoaderPlugin):
print(container)
is_latest = is_representation_from_latest(representation["parent"])
is_latest = is_representation_from_latest(representation)
for layer in sorted(layers):
file_to_import = [
os.path.join(bg_folder, layer).replace("\\", "/")

View file

@ -109,7 +109,7 @@ class ImageSequenceLoader(load.LoaderPlugin):
)
# Colour node.
if is_representation_from_latest(representation["parent"]):
if is_representation_from_latest(representation):
harmony.send(
{
"function": "PypeHarmony.setColor",

View file

@ -83,7 +83,7 @@ class TemplateLoader(load.LoaderPlugin):
self_name = self.__class__.__name__
update_and_replace = False
if is_representation_from_latest(representation["parent"]):
if is_representation_from_latest(representation):
self._set_green(node)
else:
self._set_red(node)