WIP psets now use partial editing with new features! See full message. See #1222.

* Psets are now sensitive to data type
 * Psets now support null vs empty
 * Psets now respect shared STEP IDs
This commit is contained in:
Dion Moult
2021-01-07 19:09:55 +11:00
parent fcc2b9ee13
commit d673e845f6
16 changed files with 498 additions and 134 deletions
@@ -76,11 +76,10 @@ class EditAttributes(bpy.types.Operator):
attributes[attribute["name"]] = blender_attribute.float_value
elif attribute["type"] == "enum":
attributes[attribute["name"]] = blender_attribute.enum_value
usecase = edit_attributes.Usecase(self.file, {
edit_attributes.Usecase(self.file, {
"product": self.file.by_id(props.ifc_definition_id),
"attributes": attributes
})
usecase.execute()
}).execute()
Data.load(props.ifc_definition_id)
bpy.ops.bim.disable_editing_attributes()
return {"FINISHED"}