From 0ab389cb4aeaa0be38649c94961c6fe7820c443a Mon Sep 17 00:00:00 2001 From: Stefan Bienert <stefan.bienert@unibas.ch> Date: Tue, 21 Jun 2011 17:26:10 +0200 Subject: [PATCH] Stopped Entity::SetSelection from calling Scene::SelectionChanged since it does nothing but eating up performance. Since the functionality may be necessary in the future, it is just commented out in entity.cc. --- modules/gfx/src/entity.cc | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/modules/gfx/src/entity.cc b/modules/gfx/src/entity.cc index cc22611e5..1c2927359 100644 --- a/modules/gfx/src/entity.cc +++ b/modules/gfx/src/entity.cc @@ -767,8 +767,12 @@ void Entity::SetSelection(const mol::EntityView& view) sel_=view; } this->UpdateSelection(); - this->FlagRebuild(); - Scene::Instance().SelectionChanged(GetName(), view); + this->FlagRebuild(); + // SB: The following function was found do to nothing. + // It just makes selecting entities in dng window slow. + // If at some point, selecting requires a certain action to be carried out on + // each observer, comment in again. + //Scene::Instance().SelectionChanged(GetName(), view); Scene::Instance().RequestRedraw(); } -- GitLab