mirror of
https://github.com/PixelGuys/Cubyz.git
synced 2025-08-03 19:28:49 -04:00
List available tool function types when not found.
This commit is contained in:
parent
0cfcf801ca
commit
1f18486c67
@ -381,7 +381,7 @@ const FunctionType = enum {
|
|||||||
|
|
||||||
fn fromString(string: []const u8) FunctionType {
|
fn fromString(string: []const u8) FunctionType {
|
||||||
return std.meta.stringToEnum(FunctionType, string) orelse {
|
return std.meta.stringToEnum(FunctionType, string) orelse {
|
||||||
std.log.err("Couldn't find function type {s}. Replacing it with linear", .{string});
|
std.log.err("Couldn't find function type {s}. Replacing it with linear. Available functions are: {s}", .{string, std.meta.fieldNames(FunctionType)});
|
||||||
return .linear;
|
return .linear;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user