fixed api_WIP, minor cleanup in other nodes

This commit is contained in:
martinaCodes
2022-09-04 23:36:30 +02:00
parent 8b8024ba7e
commit 7c2162f054
7 changed files with 73 additions and 87 deletions
+1 -3
View File
@@ -61,10 +61,9 @@ class SvIfcCreateEntity(bpy.types.Node, SverchCustomTreeNode, ifcsverchok.helper
for i in range(0, self.entity_schema.attribute_count()):
self.sv_input_names.append(self.entity_schema.attribute_by_index(i).name())
self.process()
super().process()
def generate_inputs(self, ifc_class):
# print("generate_inputs...")
while len(self.inputs) > 2:
self.inputs.remove(self.inputs[-1])
for i in range(0, self.entity_schema.attribute_count()):
@@ -78,7 +77,6 @@ class SvIfcCreateEntity(bpy.types.Node, SverchCustomTreeNode, ifcsverchok.helper
for i in range(0, len(entity)):
try:
value = attributes[i]
# print("value (attribute[i]): ", value, "|value type: ", type(value))
if isinstance(value, str) and value == "":
value = None
except: