Simplify UI by making GlobalId generation more automated and show in context

This commit is contained in:
Dion Moult
2020-08-09 11:21:00 +10:00
parent 09af3b052b
commit be4fe1b684
2 changed files with 4 additions and 4 deletions
@@ -1122,6 +1122,8 @@ class AddAttribute(bpy.types.Operator):
if bpy.context.active_object.BIMObjectProperties.applicable_attributes:
attribute = bpy.context.active_object.BIMObjectProperties.attributes.add()
attribute.name = bpy.context.active_object.BIMObjectProperties.applicable_attributes
if attribute.name == 'GlobalId':
attribute.string_value = ifcopenshell.guid.new()
return {'FINISHED'}