Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/space_image/image_sequence.c
| Show First 20 Lines • Show All 220 Lines • ▼ Show 20 Lines | ListBase ED_image_filesel_detect_sequences(Main *bmain, wmOperator *op, const bool detect_udim) | ||||
| RNA_string_get(op->ptr, "filepath", filepath); | RNA_string_get(op->ptr, "filepath", filepath); | ||||
| /* File browser. */ | /* File browser. */ | ||||
| if (RNA_struct_property_is_set(op->ptr, "directory") && | if (RNA_struct_property_is_set(op->ptr, "directory") && | ||||
| RNA_struct_property_is_set(op->ptr, "files")) { | RNA_struct_property_is_set(op->ptr, "files")) { | ||||
| const bool was_relative = BLI_path_is_rel(filepath); | const bool was_relative = BLI_path_is_rel(filepath); | ||||
| image_sequence_get_frame_ranges(op, &ranges); | image_sequence_get_frame_ranges(op, &ranges); | ||||
| for (ImageFrameRange *range = ranges.first; range; range = range->next) { | LISTBASE_FOREACH (ImageFrameRange *, range, &ranges) { | ||||
| image_detect_frame_range(range, detect_udim); | image_detect_frame_range(range, detect_udim); | ||||
| BLI_freelistN(&range->frames); | BLI_freelistN(&range->frames); | ||||
| if (was_relative) { | if (was_relative) { | ||||
| BLI_path_rel(range->filepath, BKE_main_blendfile_path(bmain)); | BLI_path_rel(range->filepath, BKE_main_blendfile_path(bmain)); | ||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
| Show All 11 Lines | |||||