Ignore:
Timestamp:
Dec 19, 2025, 11:29:38 PM (10 days ago)
Author:
Frederik Heber <frederik.heber@…>
Branches:
Candidate_v1.7.1, stable
Children:
98ad30
Parents:
d2be22
git-author:
Frederik Heber <frederik.heber@…> (11/16/25 11:19:01)
git-committer:
Frederik Heber <frederik.heber@…> (12/19/25 23:29:38)
Message:

FIX: fragmentation hydrogens do not trigger AtomInserted.

  • we had already switched off position and element changes. However, the fragmentation hydrogens could still be briefly seen on creation because the AtomInserted notification is still triggered. The World::createAtom allows now to suppress the notifcation. The switch options are put into an enum to make them very verbose in the code. This should really only be used by the HydrogenPool.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/unittests/AtomIdSetUnitTest.cpp

    rd2be22 r25aa214  
    6363
    6464  atomVector.resize((size_t)MaxAtoms);
    65   std::generate_n(atomVector.begin(), MaxAtoms,
    66       boost::bind(&World::createAtom, boost::ref(World::getInstance())));
     65  std::generate_n(atomVector.begin(), MaxAtoms, boost::bind(
     66    static_cast<atom* (World::*)(World::CreateAtomNotificationType)>(&World::createAtom),
     67    World::getPointer(),
     68    World::CreateAtomNotificationType::NOTIFY_ON_CREATE_ATOM)
     69  );
    6770}
    6871
Note: See TracChangeset for help on using the changeset viewer.