Removed redundant logic which was broken anyway, call to get_representation_context had wrong arguments

Note: Arguments passed to `get_representation_context` were wrong because it also takes `project_name` as argument
This commit is contained in:
Roy Nieterau 2024-03-20 00:25:21 +01:00
parent 11e89c100e
commit 7dc202acc9

View file

@ -1,10 +1,7 @@
import collections import collections
from ayon_core.lib.attribute_definitions import BoolDef from ayon_core.lib.attribute_definitions import BoolDef
from ayon_core.pipeline import ( from ayon_core.pipeline import registered_host
get_representation_context,
registered_host,
)
from ayon_core.hosts.tvpaint.api import plugin from ayon_core.hosts.tvpaint.api import plugin
from ayon_core.hosts.tvpaint.api.lib import ( from ayon_core.hosts.tvpaint.api.lib import (
get_layers_data, get_layers_data,
@ -218,10 +215,7 @@ class LoadImage(plugin.Loader):
removed. removed.
""" """
repre_entity = context["representation"]
# Create new containers first # Create new containers first
context = get_representation_context(repre_entity["id"])
# Get layer ids from previous container # Get layer ids from previous container
old_layer_names = self.get_members_from_container(container) old_layer_names = self.get_members_from_container(container)