fix: none result while trying to access a node

This commit is contained in:
Swann 2020-08-07 15:38:11 +02:00
parent 5d52fb2460
commit 49a419cbe2
No known key found for this signature in database
GPG Key ID: E1D3641A7C43AACB

View File

@ -623,7 +623,7 @@ def depsgraph_evaluation(scene):
# - if its ours or ( under common and diff), launch the
# update process
# - if its to someone else, ignore the update (go deeper ?)
if node.owner in [client.id, RP_COMMON] and node.state == UP:
if node and node.owner in [client.id, RP_COMMON] and node.state == UP:
# Avoid slow geometry update
if 'EDIT' in context.mode:
break