mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-02 08:54:53 +01:00
always override instance
This commit is contained in:
parent
9839e54025
commit
1bb51aa0d0
2 changed files with 3 additions and 10 deletions
|
|
@ -79,12 +79,9 @@ class CreateBeauty(pipeline.TVPaintCreator):
|
|||
|
||||
if existing_instance is not None:
|
||||
self.log.info(
|
||||
f"Beauty instance for group id {group_id} already exists."
|
||||
f"Beauty instance for group id {group_id} already exists"
|
||||
", overriding"
|
||||
)
|
||||
if existing_instance == self.data:
|
||||
self.log.info("Instance to create is same. Did nothing.")
|
||||
return
|
||||
self.log.debug("Overriding beauty instance with new data.")
|
||||
instances[existing_instance_idx] = self.data
|
||||
else:
|
||||
instances.append(self.data)
|
||||
|
|
|
|||
|
|
@ -104,12 +104,8 @@ class CreateRenderPass(pipeline.TVPaintCreator):
|
|||
if existing_instance is not None:
|
||||
self.log.info(
|
||||
f"Render pass instance for group id {group_id}"
|
||||
f" and name \"{name}\" already exists."
|
||||
f" and name \"{name}\" already exists, overriding."
|
||||
)
|
||||
if existing_instance == self.data:
|
||||
self.log.info("Instance to create is same. Did nothing.")
|
||||
return
|
||||
self.log.debug("Overriding beauty instance with new data.")
|
||||
instances[existing_instance_idx] = self.data
|
||||
else:
|
||||
instances.append(self.data)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue