Commit 415fbdb2 authored by Jonathan Wiedemann's avatar Jonathan Wiedemann
Browse files

fix when thre is no support

parent 1db8ebb3
......@@ -221,10 +221,17 @@ def primitive_presence(doc=None, label=None, typeId=None, dimensions=None, suppo
r.append(0)
if support != None:
if reference.Support[0][0].Name == support:
r.append(1)
if reference:
if len(reference.Support) > 0:
if reference.Support[0][0].Name == support:
r.append(1)
else:
r.append(0)
else:
r.append(0)
else:
r.append(0)
if offset != None:
attachOffset = []
attachOffset.append(reference.AttachmentOffset.Base.x)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment