Browse Source

Fix error when trying to get keywords of ptAttrib without arguments.

pull/77/head
Joseph Davies 7 years ago
parent
commit
790fd9f399
Signed by untrusted user: Deledrius
GPG Key ID: 28ACC6E8D2B24B8A
  1. 2
      korman/operators/op_nodes.py

2
korman/operators/op_nodes.py

@ -132,7 +132,7 @@ class PlPyAttributeNodeOperator(NodeOperator, bpy.types.Operator):
else:
print("Found ptAttribute type '{}' with unknown arguments: {}".format(cached.attribute_type, args))
# Add in/set any arguments provided by keyword
if not set(pyAttribArgMap[cached.attribute_type]).isdisjoint(attrib.keys()):
if cached.attribute_type in pyAttribArgMap.keys() and not set(pyAttribArgMap[cached.attribute_type]).isdisjoint(attrib.keys()):
argmap.update({key: attrib[key] for key in attrib if key in pyAttribArgMap[cached.attribute_type]})
# Attach the arguments to the attribute
if argmap:

Loading…
Cancel
Save