derkork / godot-statecharts

A state charts extension for Godot 4
MIT License
761 stars 39 forks source link

Wrong variable type declaration, which caused errors on clicking state nodes. #9

Closed zincles closed 1 year ago

zincles commented 1 year ago

Problems

The newly added GUI editor is good, but there're still some issues on it. When I click any state nodes, the editor push errors about "res://addons/godot_state_charts/utilities/editor_sidebar.gd:42 - Cannot call method 'get_children' on a null value"

image

Solution

this problem is caused by wrong variable type declaration in res://addons/godot_state_charts/utilities/editor_sidebar.gd , line 14, change:

@onready var _add_grid_container:GridContainer = %AddGridContainer

to

@onready var _add_grid_container:HFlowContainer = %AddGridContainer

would be fine. image

derkork commented 1 year ago

Thanks a lot for reporting this, I'll submit 0.2.1 to the asset library.