MarginallyClever / Makelangelo-software

Software for plotters - especially the wall-hanging polargraph also called Makelangelo.
http://www.marginallyclever.com/
GNU General Public License v2.0
342 stars 148 forks source link

7.57.0 redock window, meshes disappear #749

Closed i-make-robots closed 2 days ago

i-make-robots commented 6 days ago

Steps to make the bug happen

  1. Load any drawing
  2. Cause preview tab to re-dock: drag it somewhere, close + reopen, etc.
  3. paper is gone, drawing is gone, etc.

What was supposed to happen No change - paper and drawing should still be there.

Additional context Mesh::unload() needs to be called on all meshes so that they are reloaded by the new gl render context. Probably the easiest way is to store all meshes in a MeshPool and call MeshPool.unloadAll() in PreviewPanel.dispose().

i-make-robots commented 2 days ago

Fixed in 5bb58da45140157c1e1772b0e5690469bf84bed2