X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;f=org.simantics.g3d.vtk%2Fsrc%2Forg%2Fsimantics%2Fg3d%2Fvtk%2Fawt%2FInteractiveVtkPanel.java;h=d697070cfbae165dfb49ff7cf3efe5a3dd28c738;hb=refs%2Fchanges%2F18%2F4218%2F2;hp=9ede257ed5cf3436bbc1ad6157bd648dd84cd5d1;hpb=81ca5113f19b62068146806f05e2e99bbe14b5f8;p=simantics%2F3d.git diff --git a/org.simantics.g3d.vtk/src/org/simantics/g3d/vtk/awt/InteractiveVtkPanel.java b/org.simantics.g3d.vtk/src/org/simantics/g3d/vtk/awt/InteractiveVtkPanel.java index 9ede257e..d697070c 100644 --- a/org.simantics.g3d.vtk/src/org/simantics/g3d/vtk/awt/InteractiveVtkPanel.java +++ b/org.simantics.g3d.vtk/src/org/simantics/g3d/vtk/awt/InteractiveVtkPanel.java @@ -16,6 +16,7 @@ import java.awt.event.MouseEvent; import java.util.ArrayList; import java.util.List; +import org.eclipse.core.runtime.Platform; import org.simantics.g3d.scenegraph.RenderListener; import org.simantics.g3d.vtk.action.vtkAction; import org.simantics.g3d.vtk.common.VtkView; @@ -54,8 +55,10 @@ public class InteractiveVtkPanel extends vtkPanel implements VtkView { public InteractiveVtkPanel() { super(); - // This is actually a static method in C++ - new vtkObject().GlobalWarningDisplayOff(); + if (!Platform.inDevelopmentMode()) { + // This is actually a static method in C++ + new vtkObject().GlobalWarningDisplayOff(); + } iren = new vtkGenericRenderWindowInteractor(); iren.SetRenderWindow(rw);