freemocap / skelly_viewer

MIT License
4 stars 1 forks source link

Correct reset between session loads #12

Closed philipqueen closed 7 months ago

philipqueen commented 8 months ago

This PR fixes two issues, both related to incorrect behavior on loading new data:

1) Video Loading: This PR clears the existing videos when a new session is loaded after a session had already been loaded. Prior, the old videos still showed beneath the proper ones, but this is fixed by deleting the contents of the video display layout before loading new videos.

2) Skeleton Connections: This PR resets the skeleton connections when a new session is loaded. Previously, only the first skeleton loaded had connections, the rest just had dots showing the joint trajectories. Now the variable holding the skeleton connections is cleared before a new session is loaded, forcing the plot skeleton bones function to redraw connections with the new joints.

Fixes #11