Browse Source

Merge pull request #2757 from Chaosus/fix_switch

Adds break to default case in switch flow operator (shaders).
Yuri Roubinsky 6 năm trước cách đây
mục cha
commit
247ba2144c
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  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