Fix crash when pressing undo after assigning an IFC class to an object. Baby steps to solving the "Undo Sync".

This commit is contained in:
Dion Moult
2021-04-23 17:44:50 +10:00
parent c7aa42bfd5
commit 43d78af767
2 changed files with 2 additions and 1 deletions
@@ -76,6 +76,7 @@ class ReassignClass(bpy.types.Operator):
class AssignClass(bpy.types.Operator):
bl_idname = "bim.assign_class"
bl_label = "Assign IFC Class"
bl_options = {'REGISTER', 'UNDO'}
obj: bpy.props.StringProperty()
ifc_class: bpy.props.StringProperty()
predefined_type: bpy.props.StringProperty()
@@ -150,7 +150,7 @@ class BIMWorkScheduleProperties(PropertyGroup):
class BIMTaskTreeProperties(PropertyGroup):
# This belongs by itself for performance reasons.
# This belongs by itself for performance reasons. https://developer.blender.org/T87737
# In Blender if you add thousands of tasks it makes other property access in the same group really slow.
tasks: CollectionProperty(name="Tasks", type=Task)