rive-app / rive-cpp-legacy

C++ runtime for Rive
MIT License
287 stars 43 forks source link

Don’t reset when calling buildPath. #305

Closed luigi-rosso closed 2 years ago

luigi-rosso commented 2 years ago

Fixes fidelity between edit-time click interactions and runtime ones. Initially reported here: https://2dimensions.slack.com/archives/CHMAP278R/p1652832973552619

Basically, we were resetting the hit tester whenever we were building a path, this would effectively make it so only the last path submitted would be used for hit-testing in cases where a shape was built by multiple paths, as is the case with the sneaker which has a "hole" cut out for the badge.