diff --git a/common/BaseObjectData.cc b/common/BaseObjectData.cc index 4ece1652f56c600a16b84a706e07bd1a5ecd63c7..760f77065c359cf4a094b5eb597e0d25446b9d64 100644 --- a/common/BaseObjectData.cc +++ b/common/BaseObjectData.cc @@ -290,7 +290,7 @@ void BaseObjectData::getBoundingBox(ACG::Vec3d& bbmin, ACG::Vec3d& bbmax){ bbmax = (ACG::Vec3d) act.bbMax(); } -void BaseObjectData::setObjectDrawMode(const ACG::SceneGraph::DrawModes::DrawMode _mode, bool _force) { +void BaseObjectData::setObjectDrawMode(const ACG::SceneGraph::DrawModes::DrawMode& _mode, const bool& _force) { // Set draw mode for this object ACG::SceneGraph::SetDrawModesAction actionActive(_mode, _force); diff --git a/common/BaseObjectData.hh b/common/BaseObjectData.hh index 318d346ffdb52b3170aaefdbc636b714f7edb06c..f000677feae8490689a43bc78537c2ef27be1c7a 100644 --- a/common/BaseObjectData.hh +++ b/common/BaseObjectData.hh @@ -203,7 +203,7 @@ class DLLEXPORT BaseObjectData : public BaseObject * @param _mode The draw mode that should be active for this object * @param _force If true, the mode is set ignoring if its supported by the node and its subnodes */ - void setObjectDrawMode(const ACG::SceneGraph::DrawModes::DrawMode _mode, bool _force = false); + void setObjectDrawMode(const ACG::SceneGraph::DrawModes::DrawMode& _mode, const bool& _force = false); private :