mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
Style: Enforce use of bool literals instead of integers
Using clang-tidy's `modernize-use-bool-literals`. https://clang.llvm.org/extra/clang-tidy/checks/modernize-use-bool-literals.html
This commit is contained in:
parent
a828398655
commit
b4af1eba0a
29 changed files with 47 additions and 47 deletions
|
|
@ -2277,7 +2277,7 @@ SpatialMaterial::SpatialMaterial() :
|
|||
depth_draw_mode = DEPTH_DRAW_OPAQUE_ONLY;
|
||||
cull_mode = CULL_BACK;
|
||||
for (int i = 0; i < FLAG_MAX; i++) {
|
||||
flags[i] = 0;
|
||||
flags[i] = false;
|
||||
}
|
||||
diffuse_mode = DIFFUSE_BURLEY;
|
||||
specular_mode = SPECULAR_SCHLICK_GGX;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue