Răsfoiți Sursa

Merge pull request #2757 from Chaosus/fix_switch

Adds break to default case in switch flow operator (shaders).
Yuri Roubinsky 6 ani în urmă
părinte
comite
247ba2144c

+ 1 - 0
tutorials/shading/shading_reference/shading_language.rst

@@ -342,6 +342,7 @@ Godot Shading language supports the most common types of flow control:
             break;
         //...
         default: // optional
+            break;
     }
 
     // for loops