fix(global): entity error problem

This commit is contained in:
Jakub Jezek 2019-08-06 12:11:12 +02:00
parent b8f3aa0561
commit 885aee74ef
2 changed files with 2 additions and 3 deletions

View file

@ -51,7 +51,7 @@ def get_hierarchy(asset_name=None):
})
not_set = "PARENTS_NOT_SET"
entity_parents = entity.get("data", {}).get("parents", not_set)
entity_parents = asset_entity.get("data", {}).get("parents", not_set)
# If entity already have parents then just return joined
if entity_parents != not_set:

View file

@ -212,7 +212,6 @@ def create_write_node(name, data, prenodes=None):
"nuke_dataflow_writes": nuke_dataflow_writes,
"nuke_colorspace_writes": nuke_colorspace_writes
})
anatomy_filled = format_anatomy(data)
except Exception as e:
@ -321,7 +320,7 @@ def create_write_node(name, data, prenodes=None):
lnk.makeLink(write_node.name(), "Render")
lnk.setName("Render")
GN.addKnob(lnk)
return GN