Skip to content

Commit

Permalink
Exclude blocks from input copy
Browse files Browse the repository at this point in the history
  • Loading branch information
DoomTas3r authored Oct 31, 2024
1 parent 149e69e commit 5f913c8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion addons/block_code/ui/blocks/block/block.gd
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,10 @@ func _copy_snapped_blocks(copy_from: Node, copy_to: Node):
copy_to_child.add_child(_context.block_script.instantiate_block(copy_from_child.snapped_block.definition))
_block_canvas.reconnect_block.emit(copy_to_child.snapped_block)
elif copy_from_child.name.begins_with("ParameterInput"):
copy_to_child.set_raw_input(copy_from_child.get_raw_input())
var raw_input = copy_from_child.get_raw_input()

if not raw_input is Block:
copy_to_child.set_raw_input(copy_from_child.get_raw_input())

_copy_snapped_blocks(copy_from_child, copy_to_child)

Expand Down

0 comments on commit 5f913c8

Please sign in to comment.