mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-02 08:54:53 +01:00
allows to fully delete the render instances if users click the remove button in creator
This commit is contained in:
parent
ee99b21e97
commit
80a5982a24
1 changed files with 13 additions and 0 deletions
|
|
@ -247,9 +247,22 @@ class HoudiniCreator(NewCreator, HoudiniCreatorBase):
|
|||
"""
|
||||
for instance in instances:
|
||||
instance_node = hou.node(instance.data.get("instance_node"))
|
||||
node = instance.data.get("instance_node")
|
||||
|
||||
if instance_node:
|
||||
instance_node.destroy()
|
||||
|
||||
# for the extra render node from the plugins
|
||||
# such as vray and redshift
|
||||
ipr_node = hou.node("{}{}".format(node,
|
||||
"_IPR"))
|
||||
if ipr_node:
|
||||
ipr_node.destroy()
|
||||
re_node = hou.node("{}{}".format(node,
|
||||
"_render_element"))
|
||||
if re_node:
|
||||
re_node.destroy()
|
||||
|
||||
self._remove_instance_from_context(instance)
|
||||
|
||||
def get_pre_create_attr_defs(self):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue