Skip to content

Commit

Permalink
Opened in new godot version
Browse files Browse the repository at this point in the history
  • Loading branch information
h4de5 committed Oct 4, 2020
1 parent cde9106 commit 8a4a4e4
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/Branch.gd
Original file line number Diff line number Diff line change
Expand Up @@ -182,4 +182,4 @@ func get_polygons(from : Vector2, to : Vector2):


func rand_vector(rand_min = -8, rand_max = 8):
return Vector2(floor(rand_range(rand_min,rand_max)), floor(rand_range(rand_min,rand_max)))
return Vector2(floor(rand_range(rand_min,rand_max)), floor(rand_range(rand_min,rand_max)))
2 changes: 1 addition & 1 deletion src/Tree.gd
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,7 @@ func listFamilies():
for node in _families:
print(node.to_string())

func to_string(node):
func to_string(node = null):
if node == null:
return null
elif node is Array:
Expand Down
2 changes: 1 addition & 1 deletion src/main.gd
Original file line number Diff line number Diff line change
Expand Up @@ -121,4 +121,4 @@ func update_tree_size():
yield(get_tree(),"idle_frame")

get_node("Center/VBox/TreeContainer/Tree").rect_position = rect.position.abs()
yield(get_tree(),"idle_frame")
yield(get_tree(),"idle_frame")
2 changes: 1 addition & 1 deletion src/screenshot.gd
Original file line number Diff line number Diff line change
Expand Up @@ -86,4 +86,4 @@ func capture(filename = "screenshot.png"):
viewport.get_node("Camera2D").clear_current()

# give back current camera
# keep_camera.make_current()
# keep_camera.make_current()

0 comments on commit 8a4a4e4

Please sign in to comment.