From c560f83110d1c6e91dc64a8e98164b9fa479e902 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20M=C3=BCller?= <nexyon@gmail.com> Date: Mon, 24 Jul 2023 16:20:42 +0200 Subject: [PATCH] Fix #110336 Regression: Speaker ignoring of the starting position in NLA track Porting fix from upstream: Bugfix for reading an animated property with a negative time value. This can now happen in SequenceHandle::seek. --- extern/audaspace/src/sequence/AnimateableProperty.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/extern/audaspace/src/sequence/AnimateableProperty.cpp b/extern/audaspace/src/sequence/AnimateableProperty.cpp index c9c2a358219..b38827f5cc7 100644 --- a/extern/audaspace/src/sequence/AnimateableProperty.cpp +++ b/extern/audaspace/src/sequence/AnimateableProperty.cpp @@ -184,6 +184,12 @@ void AnimateableProperty::read(float position, float* out) t = 0; } + if(position < 0) + { + position = 0; + t = 0; + } + if(t == 0) { std::memcpy(out, getBuffer() + int(std::floor(position)) * m_count, m_count * sizeof(float)); -- GitLab