paint: implement .cube lut import

This commit is contained in:
luboslenco
2026-05-19 19:56:14 +02:00
parent c832bb8f90
commit 080d2684c1
15 changed files with 289 additions and 105 deletions
+6 -1
View File
@@ -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) {
+1
View File
@@ -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);