paint: implement .cube lut import
This commit is contained in:
@@ -270,9 +270,14 @@ bool path_is_ext_format(char *path) {
|
||||
return ends_with(p, ".stl") || ends_with(p, ".svg");
|
||||
}
|
||||
|
||||
bool path_is_lut(char *path) {
|
||||
char *p = to_lower_case(path);
|
||||
return ends_with(p, ".cube");
|
||||
}
|
||||
|
||||
bool path_is_known(char *path) {
|
||||
return path_is_mesh(path) || path_is_texture(path) || path_is_font(path) || path_is_project(path) || path_is_plugin(path) || path_is_text(path) ||
|
||||
path_is_ext_format(path);
|
||||
path_is_ext_format(path) || path_is_lut(path);
|
||||
}
|
||||
|
||||
bool path_check_ext(char *p, string_array_t *exts) {
|
||||
|
||||
@@ -31,6 +31,7 @@ bool path_is_plugin(char *path);
|
||||
bool path_is_json(char *path);
|
||||
bool path_is_text(char *path);
|
||||
bool path_is_ext_format(char *path);
|
||||
bool path_is_lut(char *path);
|
||||
bool path_is_known(char *path);
|
||||
bool path_is_base_color_tex(char *p);
|
||||
bool path_is_opacity_tex(char *p);
|
||||
|
||||
Reference in New Issue
Block a user