mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-02 08:54:53 +01:00
added method for removed instances and change name of add_instance to creator_adds_instance
This commit is contained in:
parent
f3115b85e3
commit
a1ec6c0aab
1 changed files with 4 additions and 1 deletions
|
|
@ -732,11 +732,14 @@ class CreateContext:
|
|||
changes["publish_attributes"] = publish_attribute_changes
|
||||
return changes
|
||||
|
||||
def add_instance(self, instance):
|
||||
def creator_adds_instance(self, instance):
|
||||
self.instances.append(instance)
|
||||
if not self._reseting:
|
||||
self.validate_instances_context([instance])
|
||||
|
||||
def creator_removed_instance(self, instance):
|
||||
self.instances.remove(instance)
|
||||
|
||||
def reset_instances(self):
|
||||
self.instances = []
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue