Changeset d54e37
- Timestamp:
- Apr 23, 2021, 9:02:12 PM (5 years ago)
- Branches:
- Candidate_v1.7.0, stable
- Children:
- 87c1cc
- Parents:
- 7df863
- git-author:
- Frederik Heber <frederik.heber@…> (04/10/21 14:16:42)
- git-committer:
- Frederik Heber <frederik.heber@…> (04/23/21 21:02:12)
- Location:
- src/Actions/SelectionAction/Atoms
- Files:
-
- 2 edited
-
PopAtomsAction.cpp (modified) (2 diffs)
-
PopAtomsAction.def (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
src/Actions/SelectionAction/Atoms/PopAtomsAction.cpp
r7df863 rd54e37 50 50 ActionState::ptr SelectionPopAtomsAction::performCall() { 51 51 // create undo state 52 const std::vector<const atom *> selectedAtoms = 53 const_cast<const World &>(World::getInstance()).getSelectedAtoms(); 52 const std::vector<atomId_t> selectedAtomIds = World::getConstInstance().getSelectedAtomIds(); 54 53 LOG(1, "Popping atom selection."); 55 54 World::getInstance().popAtomSelection(); 56 return ActionState::ptr(new SelectionPopAtomsState(selectedAtom s, params));55 return ActionState::ptr(new SelectionPopAtomsState(selectedAtomIds, params)); 57 56 } 58 57 … … 64 63 // and re-create present selection 65 64 World::getInstance().clearAtomSelection(); 66 BOOST_FOREACH(const atom *_atom, state->selectedAtoms)67 World::getInstance().selectAtom(_atom );65 BOOST_FOREACH(const atomId_t _atomid, state->selectedAtomIds) 66 World::getInstance().selectAtom(_atomid); 68 67 69 68 return ActionState::ptr(_state); -
src/Actions/SelectionAction/Atoms/PopAtomsAction.def
r7df863 rd54e37 20 20 #undef paramvalids 21 21 22 #define statetypes (std::vector< const atom *>)23 #define statereferences (selectedAtom s)22 #define statetypes (std::vector<atomId_t>) 23 #define statereferences (selectedAtomIds) 24 24 25 25 // some defines for all the names, you may use ACTION, STATE and PARAMS
Note:
See TracChangeset
for help on using the changeset viewer.
