)]}'
{
  "commit": "6007b52c8df8e9f0d24d360e3600c9a089444248",
  "tree": "3670aa66f8d33a74baf51bc8e8e94617608c20ee",
  "parents": [
    "38d1d3ff5fe5ab6cdfbc76746004961fbc44cc15"
  ],
  "author": {
    "name": "philter",
    "email": "hello@rive.app",
    "time": "Wed Jul 15 01:12:07 2026 +0000"
  },
  "committer": {
    "name": "philter",
    "email": "hello@rive.app",
    "time": "Wed Jul 15 01:12:07 2026 +0000"
  },
  "message": "fix: VM trigger only fires once in script hosted artboard (#13096) c7ec04d45d\nFixes [#13052] — in a file using a shader/GPU-canvas script that hosts an artboard, a view model trigger only fires once. (Verified the attached rev works as expected after the fixes)\n\nRoot cause\nTriggers are re-armed by the per-frame ViewModelInstanceValue::advanced() reset. #13002 moved that reset for script-created (detached) VM instances out of the inner artboard\u0027s advance and into an end-of-frame hook on StateMachineInstance::advanceAndApply. Two gaps:\n\nEditor: the editor drives frames from Dart and never calls advanceAndApply, so the end-of-frame reset never ran. After the first transition consumed the trigger, its used-in-layer mark was never cleared → fires once, dead forever.\nIdle scripts: once a scripted drawable\u0027s advance loop parks (advance returns false), no input event re-arms it. A pointer-fired trigger is then never consumed by the inner state machine, and the end-of-frame sweep wipes the pending fire one frame later.\nFix\nExpose ScriptingContext::advanceDetachedViewModels() to Dart (riveLuaAdvanceDetachedViewModels, FFI + WASM) and call it at the end of RiveFile.advance — the editor mirror of the runtime\u0027s end-of-frame hook.\nAdd ScriptedDrawable::wakeAdvance() (re-arm m_isAdvanceActive + Paint dirt), invoked after dispatching pointer/keyboard/text/gamepad events to a script, in both C++ and the Dart editor mirror. Guarantees the inner state machine consumes an input-fired trigger before the end-of-frame reset. Matches the existing re-arm pattern in didHydrateScriptInputs.\n\nCo-authored-by: Philip Chung \u003cphilterdesign@gmail.com\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "a484a67ba5e96918d5a5cb20ebe71de89323db14",
      "old_mode": 33188,
      "old_path": ".rive_head",
      "new_id": "e32dc7ae57d0e9969ea21817a4b52f9ceccbef4f",
      "new_mode": 33188,
      "new_path": ".rive_head"
    },
    {
      "type": "modify",
      "old_id": "312f3c05cab05505ec6915e3b7780f6473a01d39",
      "old_mode": 33188,
      "old_path": "include/rive/scripted/scripted_drawable.hpp",
      "new_id": "00768623b0ed22e3580f80fbded33e8f59eedd09",
      "new_mode": 33188,
      "new_path": "include/rive/scripted/scripted_drawable.hpp"
    },
    {
      "type": "modify",
      "old_id": "61d6fdc62f44ce9d74cf1893cfca43b59a0b59aa",
      "old_mode": 33188,
      "old_path": "src/scripted/scripted_drawable.cpp",
      "new_id": "c970825180db8df92c27f2eaff4b99c5d7e33c87",
      "new_mode": 33188,
      "new_path": "src/scripted/scripted_drawable.cpp"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "ec3b15087c116ecfa11cda478053551e0fa84213",
      "new_mode": 33188,
      "new_path": "tests/unit_tests/runtime/scripting/scripting_wake_advance_test.cpp"
    }
  ]
}
