Fix compilation error with MSVC

Pull Request: https://projects.blender.org/blender/blender/pulls/109118
This commit is contained in:
Sergey Sharybin
2023-06-19 10:32:26 +02:00
committed by Sergey Sharybin
parent aef8381bf5
commit 5881f6cc2a

View File

@@ -1629,7 +1629,8 @@ ImBuf *IMB_anim_absolute(anim *anim,
switch (anim->curtype) {
case ANIM_SEQUENCE: {
char head[ARRAY_SIZE(anim->filepath_first)], tail[ARRAY_SIZE(anim->filepath_first)];
constexpr size_t filepath_size = BOUNDED_ARRAY_TYPE_SIZE<decltype(anim->filepath_first)>();
char head[filepath_size], tail[filepath_size];
ushort digits;
const int pic = an_stringdec(
anim->filepath_first, head, sizeof(head), tail, sizeof(tail), &digits) +