mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-25 13:24:54 +01:00
tvpaint load plugins are expecting representation context
This commit is contained in:
parent
54a71203ef
commit
6d71830e32
1 changed files with 4 additions and 2 deletions
|
|
@ -210,15 +210,17 @@ class LoadImage(plugin.Loader):
|
|||
def switch(self, container, representation):
|
||||
self.update(container, representation)
|
||||
|
||||
def update(self, container, representation):
|
||||
def update(self, container, context):
|
||||
"""Replace container with different version.
|
||||
|
||||
New layers are loaded as first step. Then is tried to change data in
|
||||
new layers with data from old layers. When that is done old layers are
|
||||
removed.
|
||||
"""
|
||||
|
||||
repre_doc = context["representation"]
|
||||
# Create new containers first
|
||||
context = get_representation_context(representation)
|
||||
context = get_representation_context(repre_doc)
|
||||
|
||||
# Get layer ids from previous container
|
||||
old_layer_names = self.get_members_from_container(container)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue