Merge branch 'master' into blender2.8
[blender.git] / source / blender / blenkernel / intern / studiolight.c
index 297993a..b116e99 100644 (file)
@@ -549,7 +549,7 @@ static void studiolight_add_files_from_datafolder(const int folder_id, const cha
                        if ((dir[i].type & S_IFREG)) {
                                const char *filename = dir[i].relname;
                                const char *path = dir[i].path;
-                               if (BLI_testextensie_array(filename, imb_ext_image)) {
+                               if (BLI_path_extension_check_array(filename, imb_ext_image)) {
                                        sl = studiolight_create(STUDIOLIGHT_EXTERNAL_FILE | flag);
                                        BLI_strncpy(sl->name, filename, FILE_MAXFILE);
                                        BLI_strncpy(sl->path, path, FILE_MAXFILE);