Allow qtos to be imported

This commit is contained in:
Dion Moult
2020-03-19 16:48:50 +11:00
parent ea71485f3b
commit 7fe067498f
6 changed files with 76 additions and 31 deletions
@@ -506,6 +506,16 @@ class RemoveOverridePset(bpy.types.Operator):
return {'FINISHED'}
class RemoveQto(bpy.types.Operator):
bl_idname = 'bim.remove_qto'
bl_label = 'Remove Qto'
index: bpy.props.IntProperty()
def execute(self, context):
bpy.context.active_object.BIMObjectProperties.qtos.remove(self.index)
return {'FINISHED'}
class AddMaterialPset(bpy.types.Operator):
bl_idname = 'bim.add_material_pset'
bl_label = 'Add Material Pset'