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=540e300aa2cde241b6cc464a5dcd4d091b5bdcf3;hb=refs%2Fchanges%2F18%2F4218%2F2;hp=aaa2091699a01a56989d78931813589ce4ddc41f;hpb=81ca5113f19b62068146806f05e2e99bbe14b5f8;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 aaa20916..540e300a 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 @@ -3,6 +3,7 @@ package org.simantics.g3d.vtk.swt; import java.util.ArrayList; import java.util.List; +import org.eclipse.core.runtime.Platform; import org.eclipse.swt.widgets.Composite; import org.simantics.g3d.scenegraph.RenderListener; import org.simantics.g3d.vtk.action.vtkAction; @@ -37,8 +38,10 @@ public class InteractiveVtkComposite extends vtkSwtComponent implements VtkView{ super(parentComposite); this.parentComposite = parentComposite; - // 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(); + } } private boolean updating = false;