Merge pull request #1902 from MoritzBrueckner/fix-node-tooltips

Prevent exception when node has no bl_description attr and docstring
This commit is contained in:
Lubos Lenco 2020-10-01 11:32:02 +02:00 committed by GitHub
commit a27bb06788
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -79,6 +79,9 @@ class ARM_OT_AddNodeOverride(bpy.types.Operator):
if hasattr(nodetype, 'bl_description'):
return nodetype.bl_description.split('.')[0]
if nodetype.__doc__ is None:
return ""
return nodetype.__doc__.split('.')[0]
@classmethod