Skip to content

Commit

Permalink
Make SHIFT-selecting a node preview in second preview
Browse files Browse the repository at this point in the history
Sorry, it was just to simple to exclude 🙈
  • Loading branch information
Jowan-Spooner committed Sep 15, 2024
1 parent 5627481 commit d83326c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion material_maker/panels/graph_edit/graph_edit.gd
Original file line number Diff line number Diff line change
Expand Up @@ -866,7 +866,10 @@ func _on_GraphEdit_node_selected(node : GraphNode) -> void:
if n.generator == current_preview[0].generator:
return
if node.get_output_port_count():
set_current_preview(0, node)
if Input.is_key_pressed(KEY_SHIFT):
set_current_preview(1, node)
else:
set_current_preview(0, node)
undoredo_move_node_selection_changed = true
mm_globals.main_window.update_menus()

Expand Down

0 comments on commit d83326c

Please sign in to comment.