godotengine / godot

Godot Engine – Multi-platform 2D and 3D game engine
https://godotengine.org
MIT License
91.08k stars 21.18k forks source link

Error spam when setting invalid child in `ShapeCast2D` #61925

Open qarmin opened 2 years ago

qarmin commented 2 years ago

Godot version

4.0 alpha 9

System information

Ubuntu 22.04

Issue description

When running simple scene with ShapeCast2D which is parent of CanvasGroup I see error spam

ERROR: Invalid shape.
   at: _update_shapecast_state (scene/2d/shape_cast_2d.cpp:271)

in almost each frame. I think that this message should be printed only once at start, to not pollute output

ABCD2105835423.tscn.zip

MewPurPur commented 2 years ago

I get the error spam without a CanvasGroup child