From 790fd9f3996eadd1b2cf360f197f6f73b793390b Mon Sep 17 00:00:00 2001 From: Joseph Davies Date: Tue, 3 Oct 2017 20:47:24 -0700 Subject: [PATCH] Fix error when trying to get keywords of ptAttrib without arguments. --- korman/operators/op_nodes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/korman/operators/op_nodes.py b/korman/operators/op_nodes.py index 803275b..64e0391 100644 --- a/korman/operators/op_nodes.py +++ b/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: