-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Undo/redo of Add Hydrogens not "perfect" #6
Comments
Original comment by: @ghutchis |
Logged In: YES Would storing a copy of the original molecule and restoring that on undo not be a better solution? This is what other *Commands do to restore and it seems to work quite well. Original comment by: @cryos |
Logged In: YES For now, this is probably the best approach. In my mind, it seems like we need something "smaller" than a molecule to keep a list of atoms and bonds to create or remove. However, OBMol doesn't have support for deleting or adding lists of atoms yet. In the meantime, this is probably the best approach, yes. Original comment by: @ghutchis |
Logged In: YES This is fixed in SVN trunk (I guess by cryos, but I can't find the fix in the ChangeLog). Marking this closed. Original comment by: @ghutchis |
Start with a molecule with some existing hydrogens (e.g., an imported crystal structure or PDB file), like the attached file. Add hydrogens. Try "undo" and all hydrogens are removed, including the original ones.
In short, for files with some existing hydrogens, "Add Hydrogens" and "Remove Hydrogens" are not perfect redo/undo pairs, since you will not get back to the original state.
Reported by: @ghutchis
The text was updated successfully, but these errors were encountered: