From 425cb9283a59328bda111a48280da8e01d29f516 Mon Sep 17 00:00:00 2001 From: Marko Luukkainen Date: Mon, 27 May 2019 10:51:19 +0300 Subject: [PATCH] Add split point actor to deletables to prevent memory leak gitlab #4 Change-Id: I17c5a5286874eb7cad7fb24a77607f0f5da32c15 --- .../org/simantics/plant3d/gizmo/SplitPointSelectionGizmo.java | 1 + 1 file changed, 1 insertion(+) diff --git a/org.simantics.plant3d/src/org/simantics/plant3d/gizmo/SplitPointSelectionGizmo.java b/org.simantics.plant3d/src/org/simantics/plant3d/gizmo/SplitPointSelectionGizmo.java index 336fdbd5..e653cf65 100644 --- a/org.simantics.plant3d/src/org/simantics/plant3d/gizmo/SplitPointSelectionGizmo.java +++ b/org.simantics.plant3d/src/org/simantics/plant3d/gizmo/SplitPointSelectionGizmo.java @@ -61,6 +61,7 @@ public class SplitPointSelectionGizmo extends vtkGizmo { actor = new MeshActor(); actor.setMesh(tube_x); + panel.addDeletable(actor); this.listener = new RenderListener() { @Override -- 2.47.1