mirror of
https://github.com/godotengine/godot.git
synced 2026-01-03 18:11:19 +03:00
Fix misuses of error macros
This commit is contained in:
@@ -401,7 +401,6 @@ Color Color::named(const String &p_name) {
|
||||
int idx = find_named_color(p_name);
|
||||
if (idx == -1) {
|
||||
ERR_FAIL_V_MSG(Color(), "Invalid color name: " + p_name + ".");
|
||||
return Color();
|
||||
}
|
||||
return named_colors[idx].color;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user