mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 16:34:53 +01:00
don't use creator in methods
This commit is contained in:
parent
373d245242
commit
e7fdb1d151
1 changed files with 4 additions and 4 deletions
|
|
@ -753,15 +753,15 @@ class CreatedInstance:
|
|||
label = self._data.get("group")
|
||||
if label:
|
||||
return label
|
||||
return self.creator.get_group_label()
|
||||
return self._group_label
|
||||
|
||||
@property
|
||||
def creator_identifier(self):
|
||||
return self.creator.identifier
|
||||
return self._data["creator_identifier"]
|
||||
|
||||
@property
|
||||
def creator_label(self):
|
||||
return self.creator.label or self.creator_identifier
|
||||
return self._creator_label or self.creator_identifier
|
||||
|
||||
@property
|
||||
def id(self):
|
||||
|
|
@ -1477,7 +1477,7 @@ class CreateContext:
|
|||
self._instances_by_id[instance.id] = instance
|
||||
# Prepare publish plugin attributes and set it on instance
|
||||
attr_plugins = self._get_publish_plugins_with_attr_for_family(
|
||||
instance.creator.family
|
||||
instance.family
|
||||
)
|
||||
instance.set_publish_plugins(attr_plugins)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue