fix: keep particle timeline playback ticking
Some checks failed
validate-scripts / validate-scripts (push) Has been cancelled

This commit is contained in:
OpenAI Codex
2026-09-04 08:17:29 +08:00
parent 0609199cce
commit 1343929474
6 changed files with 59 additions and 0 deletions

View File

@@ -46,6 +46,11 @@ RasterArrayTimelineFrame RasterArrayTimelineRuntime::frame() const {
return frameLocked();
}
float RasterArrayTimelineRuntime::playbackSpeed() const {
std::lock_guard<std::mutex> lock(mutex);
return speed;
}
bool RasterArrayTimelineRuntime::moveToLocked(const size_t nextT0) {
if (nextT0 + 1 >= entries.size()) return false;
t0 = nextT0;