Explorar el Código

Merge pull request #2757 from Chaosus/fix_switch

Adds break to default case in switch flow operator (shaders).
Yuri Roubinsky hace 6 años
padre
commit
247ba2144c
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. 1 0
      tutorials/shading/shading_reference/shading_language.rst

+ 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