Skip to content

Commit

Permalink
Merge pull request #145 from endlessm/T35572-select-non-block-code-node
Browse files Browse the repository at this point in the history
Plugin: Only skip duplicate work when BlockCode nodes selected
  • Loading branch information
manuq authored Jul 18, 2024
2 parents 7d3cea1 + 518fa9b commit 1c877c7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion addons/block_code/block_code_plugin.gd
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,10 @@ func _on_editor_inspector_edited_object_changed():


func select_block_code_node(block_code: BlockCode):
if block_code == _selected_block_code:
# Skip duplicate selection unless new node is null. That happens when any
# non-BlockCode node is selected and that needs to be passed through to the
# main panel.
if block_code and block_code == _selected_block_code:
return

if not is_block_code_editable(block_code):
Expand Down

0 comments on commit 1c877c7

Please sign in to comment.