Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't redundantly print the node on right click #8

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion addons/zylann.editor_debugger/dock.gd
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ var _control_highlighter: ColorRect = null
# @see _update_node_view
var _no_texture := get_theme_icon("", "EditorIcons")

var current_node: Node

func get_tree_view() -> Tree:
return _tree_view
Expand Down Expand Up @@ -155,8 +156,11 @@ func _update_node_view(node: Node, view: TreeItem) -> void:
func _select_node() -> void:
var node_view := _tree_view.get_selected()
var node := _get_node_from_view(node_view)

if(node != current_node):
print("Selected ", node)

print("Selected ", node)
current_node = node

_highlight_node(node)

Expand Down