Ark2000 / PankuConsole

Feature-packed real-time debugging toolkit for Godot Engine.
https://k2kra.xyz/PankuConsole/
MIT License
1.01k stars 39 forks source link

Error occurs after clicking: Cannot convert argument 2 from bool to float #83

Closed CheapMeow closed 1 year ago

CheapMeow commented 1 year ago

After clicking, error occurs:

res://addons/panku_console/components/lynx_window2/lynx_windows_manager_2.gd

Invalid type in GDScript utility function ''. Cannot convert argument 2 from bool to float.

image

I add test code to debug:

var array = range(get_child_count() - 1, -1, -1)
print_debug(array)
for i in range(get_child_count() - 1, -1, -1):

Then array is fine to print.

So it is weird. If I write code like

var array = range(get_child_count() - 1, -1, -1)
for i in array:

Then there won't be any error.

Addon Version: 1.3.73 Godot Version: v4.0.rc4.official [e0de3573f]

CheapMeow commented 1 year ago

Fixed by https://github.com/godotengine/godot/pull/73841