X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;f=org.simantics.g3d.vtk%2Fsrc%2Forg%2Fsimantics%2Fg3d%2Fvtk%2Fswt%2FInteractiveVtkComposite.java;h=3963f16507923e419b78b430bee59c160217b561;hb=HEAD;hp=03d0d2fb8cde95f7f6e16f943119fb8dcdb1fba3;hpb=ebfe6b0245b5cf9231cecedf0aaacd891eb5d344;p=simantics%2F3d.git diff --git a/org.simantics.g3d.vtk/src/org/simantics/g3d/vtk/swt/InteractiveVtkComposite.java b/org.simantics.g3d.vtk/src/org/simantics/g3d/vtk/swt/InteractiveVtkComposite.java index 03d0d2fb..3963f165 100644 --- a/org.simantics.g3d.vtk/src/org/simantics/g3d/vtk/swt/InteractiveVtkComposite.java +++ b/org.simantics.g3d.vtk/src/org/simantics/g3d/vtk/swt/InteractiveVtkComposite.java @@ -18,6 +18,7 @@ import vtk.vtkAreaPicker; import vtk.vtkAssemblyNode; import vtk.vtkAssemblyPath; import vtk.vtkCellPicker; +import vtk.vtkObject; import vtk.vtkObjectBase; import vtk.vtkPointPicker; import vtk.vtkProp; @@ -35,8 +36,9 @@ public class InteractiveVtkComposite extends vtkSwtComponent implements VtkView{ public InteractiveVtkComposite(Composite parentComposite) { super(parentComposite); this.parentComposite = parentComposite; - - // TODO Auto-generated constructor stub + + // This is actually a static method in C++ + new vtkObject().GlobalWarningDisplayOff(); } private boolean updating = false; @@ -177,11 +179,6 @@ public class InteractiveVtkComposite extends vtkSwtComponent implements VtkView{ public void lock() { getVTKLock().lock(); - if (getComponent().getContext() != null && !getComponent().getContext().isCurrent()) { - @SuppressWarnings("unused") - int ret = getComponent().getContext().makeCurrent(); -// System.out.println("Make current2 " + ret); - } } public void unlock() {