Stop recalculating group indices all of the time.
authorMarcus D. Hanwell <marcus.hanwell@kitware.com>
Tue, 4 Jan 2011 18:45:56 +0000 (13:45 -0500)
committerMarcus D. Hanwell <marcus.hanwell@kitware.com>
Tue, 4 Jan 2011 18:45:56 +0000 (13:45 -0500)
commitc3b408880547b8c6ea9c3f8c7fc1a2ed01ba5977
treedccacb4b918bf28760f60edbb2663942071edd8f
parentf645c160019a3ab03d33e478b13f52cc3ae78fa4
Stop recalculating group indices all of the time.

The group index is only used by the label engine, avoid calculating it
every time an atom is added/removed or the geometry is changed for
something many people never use. I am not convinced that feature has any
use outside of the label engine, and would rather see it moved there.

Change-Id: I8ce9d03798765d550bf7b74ff4fd19542fb8461b
libavogadro/src/engines/labelengine.cpp
libavogadro/src/molecule.cpp
libavogadro/src/molecule.h