Skip to content

Commit

Permalink
Added some types
Browse files Browse the repository at this point in the history
  • Loading branch information
klingbolt committed Jul 29, 2023
1 parent c0a7c3c commit 64d0c26
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Spatial.gd
Original file line number Diff line number Diff line change
Expand Up @@ -434,7 +434,7 @@ func gen_map_markers():
gen_new_icon(position_vector, full_texture_path, icon, category_item)


func search_category_tree(split_name, category_item, index: int = 0):
func search_category_tree(split_name: PoolStringArray, category_item: TreeItem, index: int = 0):
if index == split_name.size():
return category_item
var child_item = category_item.get_children()
Expand Down Expand Up @@ -462,7 +462,7 @@ func build_category_tree():
func add_category(item: TreeItem, category, full_category_name: String, collapsed: bool):
var category_item = self.marker_packs.create_item(item)
if category.get_name() == "":
# If this is called, there is an error in the protobuf data
# If this is called, there is an error in the Waypoint data
category_item.set_text(0, "No name")
category_item.set_metadata(0, "")
print("Category found with no name.")
Expand Down

0 comments on commit 64d0c26

Please sign in to comment.