Fix T40757: Video Texture - Video frames dropped from beginning and end
it's actually a followup for 04f81c8, no need to apply offset for video files.
This commit is contained in:
@@ -1040,7 +1040,11 @@ static int image_open_exec(bContext *C, wmOperator *op)
|
||||
|
||||
const bool is_relative_path = RNA_boolean_get(op->ptr, "relative_path");
|
||||
|
||||
if (RNA_struct_property_is_set(op->ptr, "files") && RNA_struct_property_is_set(op->ptr, "directory")) {
|
||||
RNA_string_get(op->ptr, "filepath", path);
|
||||
|
||||
if (!IMB_isanim(path) && RNA_struct_property_is_set(op->ptr, "files") &&
|
||||
RNA_struct_property_is_set(op->ptr, "directory"))
|
||||
{
|
||||
ListBase frames;
|
||||
|
||||
BLI_listbase_clear(&frames);
|
||||
@@ -1048,9 +1052,6 @@ static int image_open_exec(bContext *C, wmOperator *op)
|
||||
frame_seq_len = image_sequence_get_len(&frames, &frame_ofs);
|
||||
BLI_freelistN(&frames);
|
||||
}
|
||||
else {
|
||||
RNA_string_get(op->ptr, "filepath", path);
|
||||
}
|
||||
|
||||
errno = 0;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user