Rive Editor 0.9.479
▶️ Play starts right away in large files: in a large file, pressing play on a state machine froze the editor for a moment, and the animation then started that far in, skipping its opening. Starting is now close to instant, and the animation plays from its first frame.
⏹️ Faster stop in large files: stopping a state machine in a large file no longer stalls while the Problems tab checks the whole file again, and files with scripts get back to drawing about 5 times faster. The stage also no longer flashes blank for a frame when you stop a file whose scripts use the GPU, and problems you fixed no longer stay listed in Problems.
🧮 Formula changes apply right away: picking a Formula converter for a bound property, or editing the formula, now updates the property at once. Before, the formula had no effect until you bound the property to something else and back. As reported here and here.
⚡ Faster playback with many formulas: since a recent update, playing a state machine in a file with thousands of Formula converters was slow, in the editor and in runtimes, because every frame checked each formula even when none had anything to update. They're skipped now: on a rig with about 4,700 formulas, a runtime frame went from 0.18 ms to 0.035 ms. Files with many formulas also load faster.
🖼️ Single renders download as images: a PNG or SVG render of a design in the Render Queue now downloads as the image itself, not as a zip holding one frame. As requested here
🪣 Bucket stops at other shapes: Bucket now stops at the fill of every other visible shape, like a brush stroke drawn across a closed loop, and fills only the side you click. Before, it looked only at the loop itself and filled all of it. A small shape inside the area, like a dot for an eye, gets filled under instead of cut out, so moving it later leaves no hole.
📋 Pasted keyframes get their own curves: pasting a keyframe onto several objects gave all the pasted keyframes one shared interpolation curve, so changing the curve on one changed the others too. Each pasted keyframe now gets its own. Pasting keyframes back onto the same object also no longer adds an unused copy of each curve to the file, which made files larger over time.
⭕ Outer strokes meet the fill: a stroke with its Position set to Outside no longer leaves a thin gap between itself and the shape's fill, in the editor and in every runtime that uses the Rive Renderer.
🔊 Audio in imported .rev files: importing a .rev from another file now points its audio clips at this file's copy of the audio. Before, they kept pointing at the original, which this file can't read.
Scripting
💥 Gradient and vector crashes: Gradient.linear, Gradient.radial and number indexes on a vector such as v[1] could read freed memory and crash. A gradient with thousands of stops also no longer runs out of stack space.
🟧 Invariant positions on WebGL2: a GPU Canvas shader that marks its position @invariant, in a struct used as both vertex output and fragment input, failed to compile for WebGL2, so nothing it drew showed up in browsers. It compiles now.
🏷️ Finding nodes by name: the Artboard.node(name) reference now says the node's name has to be exported (see Exporting Names), or node returns nil.
Runtime
🔤 Text reshapes only when it changes: text now runs its shaping step again only when its content or style changes, not when it's shown again, resized, or its layout direction flips. In a test file with many rows of text, showing a hidden view went from 4.1 ms to 2.5 ms.
🚀 Faster Artboard Lists: adding and removing items in an Artboard List takes less time. In one test file, adding 400 items with a right-to-left layout went from 28 ms to 18 ms, and removing 400 items from 0.54 ms to 0.18 ms. Layouts set to Hug also measure their contents fewer times, so adding 100 items to a list inside them went from 5.3 ms to 4.7 ms.
↔️ Right-to-left items added later: an item added to an Artboard List after the first frame, inside a right-to-left layout, laid out left to right, with its margins, padding, borders and corner radii on the wrong side. It now follows its parent's direction.
⌨️ Text Input caret after its text: a Text Input that gets focus without a click, like on a state's entry, from code, or through accessibility, now puts the caret after its text. Before, the caret sat in front of the text, so typing went in front of it too. Focusing a Text Input before its font loads also no longer crashes. This applies in the editor and in runtimes.
💥 No crash when a canvas shrinks to nothing: a paused animation whose canvas shrank to zero width or height, for example because the element around it was hidden on a web page, could crash. It now draws nothing until the canvas has a size again.