From 4ed43069c307dd9998e1a904cae36ae4233a18a4 Mon Sep 17 00:00:00 2001 From: Max Lyon Date: Tue, 3 Dec 2019 11:44:03 +0100 Subject: [PATCH] only set draw mode if getting object was successful --- OpenMesh/OMPropertyVisualizerT_impl.hh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/OpenMesh/OMPropertyVisualizerT_impl.hh b/OpenMesh/OMPropertyVisualizerT_impl.hh index d96b6e2..870616b 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); } -- GitLab