Closed pdesaulniers closed 5 years ago
I fixed the crash but now nothing gets displayed. I need to investigate what goes wrong here.
This is fixed now, and I fixed two related bugs that showed up in this case. TÖVE now also gives various warnings to explain what's happening.
There's no animation happening. Here's why: as you noted, you added a new node in the second SVG. This means there's now a mismatch of number of points. You see this in the SVG file's path definitions:
M 702.000 211.947 C 667.800 93.619 478.779 135.468 387.301 209.291 C 300.271 279.524 204.994 395.709 283.385 475.469 C 362.889 556.362 504.157 487.125 541.982 360.093 C 566.339 278.296 725.443 293.058 702.000 211.947 Z
(13 points)
m 613.111,325.608 c -5.80712,-25.87666 7.03067,-54.65462 20.44676,-81.66725 C 651.07068,208.67938 669.56902,176.42611 648.867,157.561 509.083,40.257 281.831,403.2 393.403,547.601 480.611,660.469 919.985,524.845 737.975,457.726 671.222,433.109 632.164,393.364 613.111,325.608 Z
(16 points)
TÖVE doesn't know to to interpolate this. The first SVG would need an additional node in order to be able to animate to the second SVG.
If I add a node to gradient-circle_00002.svg in the blob demo, I get a crash in nanosvg. Here is the gdb backtrace:
Here's the modified svg, with the additional node: gradient-circle_00002.svg.zip