Temporal Stethoscope - error after delete
Created by: ppaawweeuu
Problem statement
After deleting Temporal Stethoscope, ctrl+RMB rise error
Steps to reproduce
- create Temporal Stethoscope node, ctrl+RMB on some node (and it is awesome)
- select and delete that stethoscop
- nothing is selected
- again ctrl+RMB with no node selected
- error
Traceback (most recent call last): File "C:\Users\paweu\AppData\Roaming\Blender Foundation\Blender\2.90\scripts\addons\sverchok-master\ui\sv_temporal_viewers.py", line 153, in execute add_temporal_viewer(context, self.force_stethoscope, self.cut_links) File "C:\Users\paweu\AppData\Roaming\Blender Foundation\Blender\2.90\scripts\addons\sverchok-master\ui\sv_temporal_viewers.py", line 122, in add_temporal_viewer if len(existing_node.outputs) == 0: AttributeError: 'NoneType' object has no attribute 'outputs'
location: :-1
Expected result
Nothing. I think ctrl+RMB without selecting any object should do nothing.
Actual result
I see that normally ctrl+RMB without selected any node lunch Temporial Stetoscope for last selected and deselected node (i was suprised but cal live with that). Problem is when last selected node does not exist (was deleted) - error is rised.
Sverchok version
b3d 2.9, sv 0.6.0.0