Skip to content
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

Removing/Adding strand causes strandSet inconsistency #2

Closed
leemi opened this issue Dec 20, 2011 · 1 comment
Closed

Removing/Adding strand causes strandSet inconsistency #2

leemi opened this issue Dec 20, 2011 · 1 comment

Comments

@leemi
Copy link
Collaborator

leemi commented Dec 20, 2011

  1. Open Maya
  2. Open Script Editor
  3. Click CadNano button
  4. Add a scaffold strand
  5. Delete the strand in 2D view
  6. Add the scaffold strand back
  7. Resize the strand
# Traceback (most recent call last):
#   File "c:\git\cadnano2\views\pathview\strand\endpointitem.py", line 200, in mousePressEvent
#     getattr(self, toolMethodName)(modifiers, event, self.idx())  # call tool method
#   File "c:\git\cadnano2\views\pathview\strand\endpointitem.py", line 345, in selectToolMousePress
#     selectionGroup.processPendingToAddList()
#   File "c:\git\cadnano2\views\pathview\pathselection.py", line 123, in processPendingToAddList
#     item.modelSelect(doc)
#   File "c:\git\cadnano2\views\pathview\strand\endpointitem.py", line 488, in modelSelect
#     test = document.isModelStrandSelected(strand)
#   File "c:\git\cadnano2\model\document.py", line 147, in isModelStrandSelected
#     sS = strand.strandSet()
# AttributeError: 'NoneType' object has no attribute 'strandSet'
# Traceback (most recent call last):
#   File "c:\git\cadnano2\views\customqgraphicsview.py", line 406, in mouseReleaseEvent
#     self._selectionLock.processPendingToAddList()
#   File "c:\git\cadnano2\views\pathview\pathselection.py", line 123, in processPendingToAddList
#     item.modelSelect(doc)
#   File "c:\git\cadnano2\views\pathview\strand\endpointitem.py", line 488, in modelSelect
#     test = document.isModelStrandSelected(strand)
#   File "c:\git\cadnano2\model\document.py", line 147, in isModelStrandSelected
#     sS = strand.strandSet()
# AttributeError: 'NoneType' object has no attribute 'strandSet'
@grinner
Copy link
Collaborator

grinner commented Dec 21, 2011

Fixed with the addition of documentClearSelectionsSignal in document.py. This ensures that hanging callbacks are not called in the views. Perhaps those callbacks shouldn't exist in the first place, but we can resolve that separately and I think this is a good redundancy.

@grinner grinner closed this as completed Dec 21, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants