From 3697fa7cd9c749d75719f4ee5ad32b4d957c109b Mon Sep 17 00:00:00 2001 From: Ilya Portnov Date: Sun, 3 Dec 2017 15:15:34 +0500 Subject: [PATCH 1/2] Fix the problem with StringsSocket in ViewText too. --- nodes/text/viewer_text_mk2.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nodes/text/viewer_text_mk2.py b/nodes/text/viewer_text_mk2.py index 62ecee3d8..7e6159ba4 100644 --- a/nodes/text/viewer_text_mk2.py +++ b/nodes/text/viewer_text_mk2.py @@ -55,7 +55,7 @@ class SverchokViewer(bpy.types.Operator): out_edgpol = 'None \n' edpotype = '\n\ndata \n' if inputs['edg_pol'].is_linked: - if isinstance(inputs['edg_pol'].other, bpy.types.StringsSocket): + if inputs['edg_pol'].other.bl_idname == 'StringsSocket': evaline_str = inputs['edg_pol'].sv_get() if evaline_str: -- GitLab From 1264a7e54925f50d10768e9a96ffef5cd6262ffe Mon Sep 17 00:00:00 2001 From: Ilya Portnov Date: Sun, 3 Dec 2017 15:18:47 +0500 Subject: [PATCH 2/2] Fix other socket type checks in ViewerText. --- nodes/text/viewer_text_mk2.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/nodes/text/viewer_text_mk2.py b/nodes/text/viewer_text_mk2.py index 7e6159ba4..2a4872c0a 100644 --- a/nodes/text/viewer_text_mk2.py +++ b/nodes/text/viewer_text_mk2.py @@ -39,7 +39,7 @@ class SverchokViewer(bpy.types.Operator): # vertices socket out_verts = 'None \n' if inputs['vertices'].is_linked: - if isinstance(inputs['vertices'].other, bpy.types.VerticesSocket): + if inputs['vertices'].other.bl_idname == 'VerticesSocket': evaverti = inputs['vertices'].sv_get() deptl = levelsOflist(evaverti) @@ -73,7 +73,7 @@ class SverchokViewer(bpy.types.Operator): # matrix socket out_matrix = 'None \n' if inputs['matrix'].is_linked: - if isinstance(inputs['matrix'].other, bpy.types.MatrixSocket): + if inputs['matrix'].other.bl_idname == 'MatrixSocket': eva = inputs['matrix'].sv_get() deptl = levelsOflist(eva) @@ -88,7 +88,7 @@ class SverchokViewer(bpy.types.Operator): # object socket out_object = 'None \n' if inputs['object'].is_linked: - if isinstance(inputs['object'].other, bpy.types.SvObjectSocket): + if inputs['object'].other.bl_idname == 'SvObjectSocket': eva = inputs['object'].sv_get() deptl = levelsOflist(eva) -- GitLab