Skip to content

Commit

Permalink
ペースト時に選択中アイテムは非選択にする
Browse files Browse the repository at this point in the history
  • Loading branch information
folt-a committed Nov 9, 2022
1 parent 7857e02 commit b7181c0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions addons/godot-project-design-links/sekkei_graph.gd
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,11 @@ func _on_paste_nodes_request():
data.position_offset_x = data.position_offset_x + mouse_pos.x
data.position_offset_y = data.position_offset_y + mouse_pos.y
var added_nodes = _add_nodes(datas)

# 選択中のものは非選択にする
for selected_node in _get_selected_graphnode():
selected_node.selected = false

for node in added_nodes:
# IDを再取得
node.id = node.get_instance_id()
Expand Down

0 comments on commit b7181c0

Please sign in to comment.