1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-13 13:31:48 +00:00

Remove do{ } while(0) wrapper around error macros

This commit is contained in:
Haoyu Qiu
2021-09-12 14:47:33 +08:00
parent 95162ca393
commit 70853fd669
15 changed files with 209 additions and 230 deletions

View File

@@ -338,7 +338,7 @@ Vector2 VisualServer::norm_to_oct(const Vector3 v) {
// NOTE: this will mean it decompresses to 0,0,1
// Discussed heavily here: https://github.com/godotengine/godot/pull/51268 as to why we did this
if (Math::is_zero_approx(L1Norm)) {
WARN_PRINT_ONCE("Octahedral compression cannot be used to compress a zero-length vector, please use normalized normal values or disable octahedral compression")
WARN_PRINT_ONCE("Octahedral compression cannot be used to compress a zero-length vector, please use normalized normal values or disable octahedral compression");
return Vector2(0, 0);
}