diff --git a/BasePlugin/PluginFunctions.cc b/BasePlugin/PluginFunctions.cc index 6e5f9a16be34824dd529683fd39b9a833fb2316a..431e7ae7172df0bcafadd7c1b3b18963dbdaedc9 100644 --- a/BasePlugin/PluginFunctions.cc +++ b/BasePlugin/PluginFunctions.cc @@ -1015,10 +1015,10 @@ void removeObjectFromMap(int _objectId) { void addSceneGraphGenerator(ACG::QtWidgets::SceneGraphWidgetGenerator* _generator) { + // Check if we already have a generator for this type. - if ( sceneGraphGenerators_.contains( _generator->handles() ) ) { - std::cerr << "PluginFunctions Already handled" << std::endl; - } + if ( sceneGraphGenerators_.contains( _generator->handles() ) ) + return; // Store the generator sceneGraphGenerators_[_generator->handles() ] = _generator;