Commit 589289bb authored by Jan Möbius's avatar Jan Möbius

Removed debug output, use qmap instead of std::map, return same widget in...

Removed debug output, use qmap instead of std::map, return same widget in generator if already existing.

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@9103 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 009d1488
......@@ -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;
......
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