Open Pravahati opened 4 years ago
This is probably due to the data being stored in the script instead of blender's data. I'll see what I can do to fix it.
I can confirm this bug
I tried adding a @persistent function and calling clear_onion action. That still doesnt seem to do the trick. I think one of those handlers is never ended, i tried calling that finish function inside the draw_mesh class, but it doesnt help.
I was trying out the addon on a test scene and then went to create a new (empty) scene. The previous scene's onion skin would appear when I'd select an object and then disappear once the object was deselected. It worked for both a Cube and Suzanne, and neither are animated. Interestingly, once I created an Empty the onion skin became visible at all time, even when nothing was selected or I went in Edit Mode. Once I created another new scene, the onion skin would revert to its previous behavior of "I am only visible when you select an object"
Closing and restarting Blender did the trick but it might be good to automatically clear whatever cache there is once a new scene is opened