mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-26 05:42:15 +01:00
fix instances access in 'get_subset_name'
This commit is contained in:
parent
8e46890f64
commit
df4f3d45aa
2 changed files with 5 additions and 2 deletions
|
|
@ -1820,9 +1820,12 @@ class PublisherController(BasePublisherController):
|
|||
creator = self._creators[creator_identifier]
|
||||
project_name = self.project_name
|
||||
asset_doc = self._asset_docs_cache.get_full_asset_by_name(asset_name)
|
||||
instance = None
|
||||
if instance_id:
|
||||
instance = self.instances[instance_id]
|
||||
|
||||
return creator.get_subset_name(
|
||||
variant, task_name, asset_doc, project_name
|
||||
variant, task_name, asset_doc, project_name, instance=instance
|
||||
)
|
||||
|
||||
def create(
|
||||
|
|
|
|||
|
|
@ -1082,8 +1082,8 @@ class GlobalAttrsWidget(QtWidgets.QWidget):
|
|||
new_task_name,
|
||||
new_asset_name,
|
||||
instance.id,
|
||||
instance=instance
|
||||
)
|
||||
|
||||
except TaskNotSetError:
|
||||
invalid_tasks = True
|
||||
instance.set_task_invalid(True)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue