Before this commit, a listener would be added to the isManagedProperty of the meshSettings to update the MeshGenerator with appropriate global or individual MeshSettings. For some reason, this kept the internal JavaFX classes NGMeshView and MeshView alive, prohibiting clean-up of their resources, and, as a result, leaking memory. This commit fixes this issue by adding a meshSettingsProperty to the MeshGenerator that the caller can unbind to remove the listener that holds on to the MeshManager's resources.
Fixes #337
Before this commit, a listener would be added to the
isManagedProperty
of themeshSettings
to update theMeshGenerator
with appropriate global or individualMeshSettings
. For some reason, this kept the internal JavaFX classesNGMeshView
andMeshView
alive, prohibiting clean-up of their resources, and, as a result, leaking memory. This commit fixes this issue by adding ameshSettingsProperty
to theMeshGenerator
that the caller canunbind
to remove the listener that holds on to theMeshManager
's resources.