Commit 4ed43069 authored by Max Lyon's avatar Max Lyon

only set draw mode if getting object was successful

parent 02f2ecc6
......@@ -149,8 +149,8 @@ template <typename MeshT>
void OMPropertyVisualizer<MeshT>::setDrawMode(const ACG::SceneGraph::DrawModes::DrawMode& _mode)
{
BaseObjectData* object;
PluginFunctions::getObject(mObjectID, object);
object->setObjectDrawMode(_mode);
if (PluginFunctions::getObject(mObjectID, object))
object->setObjectDrawMode(_mode);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment