You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A .gdshaderinc with a default case at the top of the scope in a switch statement throws an error in Godot 4.4 RC 1. But not in 4.3.
Error: Cases must be defined before default case.
Maybe this is the intended behavior, but it does make the transition from previous versions more difficult.
Tested versions
Error thrown in Godot v4.4.rc1
No error in Godot v4.3-stable
System information
Godot v4.4.rc1 - Windows 11 (build 26100) - Multi-window, 3 monitors - Vulkan (Forward+) - dedicated NVIDIA GeForce RTX 4070 (NVIDIA; 32.0.15.7242) - AMD Ryzen 7 3700X 8-Core Processor (16 threads)
Issue description
A .gdshaderinc with a default case at the top of the scope in a switch statement throws an error in Godot 4.4 RC 1. But not in 4.3.
Error: Cases must be defined before default case.
Maybe this is the intended behavior, but it does make the transition from previous versions more difficult.
Steps to reproduce
test.gdshaderinc
Minimal reproduction project (MRP)
switch_4_3_stable.zip
switch_4_4_rc1.zip
The text was updated successfully, but these errors were encountered: