forked from LeenkxTeam/LNXSDK
Consolidate and update
This commit is contained in:
@ -79,7 +79,7 @@ class MergeNode(LnxLogicTreeNode):
|
||||
# Recreate all original inputs
|
||||
array_nodes[str(id(newnode))] = newnode
|
||||
for idx, input in enumerate(self.inputs):
|
||||
bpy.ops.lnx.node_add_input('EXEC_DEFAULT', node_index=str(id(newnode)), socket_type='LnxNodeSocketAction')
|
||||
newnode.add_input('LnxNodeSocketAction', f'Input {idx}')
|
||||
|
||||
for link in input.links:
|
||||
node_tree.links.new(link.from_socket, newnode.inputs[idx])
|
||||
|
||||
@ -278,7 +278,8 @@ def replace_all():
|
||||
|
||||
log.error(f'There were errors in the node update procedure, a detailed report has been written to {reportfile}')
|
||||
|
||||
bpy.ops.lnx.show_node_update_errors()
|
||||
if not bpy.app.background:
|
||||
bpy.ops.lnx.show_node_update_errors()
|
||||
|
||||
|
||||
def node_compat_sdk2108():
|
||||
|
||||
Reference in New Issue
Block a user