You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-05 12:10:55 +00:00
Merge pull request #52591 from timothyqiu/error-macros
[3.x] 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