sdouglas/cadnano2 — Issue #2: Removing/Adding strand causes strandSet inconsistency
Author: leemi
Created: 2011-12-20 13:48:26+00:00
State: open

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'