Skip to content

Commit 50f92e8

Browse files
committed
In BlockNode switcher, display complete paths
https://phabricator.endlessm.com/T35511
1 parent 60e74e9 commit 50f92e8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

addons/block_code/ui/title_bar/title_bar.gd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ func _update_node_option_button_options():
4444

4545
for block_code_node in scene_root.find_children("*", "BlockCode"):
4646
var node_item_index = _node_option_button.item_count
47-
var node_label = "{name} ({type})".format({"name": block_code_node.get_parent().name, "type": block_code_node.bsd.script_inherits})
47+
var node_label = "{name} ({type})".format({"name": scene_root.get_path_to(block_code_node).get_concatenated_names(), "type": block_code_node.bsd.script_inherits})
4848
_node_option_button.add_item(node_label)
4949
_node_option_button.set_item_icon(node_item_index, _block_code_icon)
5050
_node_option_button.set_item_metadata(node_item_index, block_code_node)

0 commit comments

Comments
 (0)