-
Notifications
You must be signed in to change notification settings - Fork 188
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
#5700 - System allow to establish infinit number of bonds from monomer to microstructure #6225
#5700 - System allow to establish infinit number of bonds from monomer to microstructure #6225
Conversation
…from the same attachment point
ccf6c86
to
a3b77a3
Compare
b13671d
to
232ce4d
Compare
…ber-of-bonds-from-monomer-to-microstructure
…o-establish-infinit-number-of-bonds-from-monomer-to-microstructure
…lish-infinit-number-of-bonds-from-monomer-to-microstructure
TODO: allow bond creation using only attachment points
…ber-of-bonds-from-monomer-to-microstructure
…ber-of-bonds-from-monomer-to-microstructure
@@ -465,21 +466,36 @@ class PolymerBond implements BaseTool { | |||
|
|||
const atomRenderer = event.target.__data__ as AtomRenderer; | |||
const monomer = this.bondRenderer?.polymerBond.firstMonomer; | |||
|
|||
if ( | |||
monomer instanceof Chem && |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please delete monomer instanceof Chem &&
because restriction should work for all types of monomers
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I saw the description.
I'm 100% sure that it should work for every type of monomer. Discussed with @AlexeyGirin one more time, he approved. Please remove the line.
How the feature works? / How did you fix the issue?
Following the proposal by @tanas80 and further discussion with @AlexeyGirin and @ljubica-milovic it was approved that to resolve issue #5700 creation of non-hydrogen bond from center of the CHEM monomer must be forbidden with notification banner displayed if bond target is Atom, only attachment points can be used for creating bonds from CHEM monomer to Atoms
Fixes #5700
Check list
#1234 – issue name