diff --git a/OpenMesh/OMPropertyVisualizerT_impl.hh b/OpenMesh/OMPropertyVisualizerT_impl.hh index d96b6e28059873b142f60df19b597c62e66e8836..870616b953deafc64e46f975edab454e90d22877 100644 --- a/OpenMesh/OMPropertyVisualizerT_impl.hh +++ b/OpenMesh/OMPropertyVisualizerT_impl.hh @@ -149,8 +149,8 @@ template void OMPropertyVisualizer::setDrawMode(const ACG::SceneGraph::DrawModes::DrawMode& _mode) { BaseObjectData* object; - PluginFunctions::getObject(mObjectID, object); - object->setObjectDrawMode(_mode); + if (PluginFunctions::getObject(mObjectID, object)) + object->setObjectDrawMode(_mode); }