You've already forked godot
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:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user