See #4838. Consistently use schema_identifiers throughout the code instead of schema to be more explicit.

This also means in the future we are better shaped to be a prototyping platform for future IFC versions.
This commit is contained in:
Dion Moult
2024-06-15 14:05:37 +10:00
parent 9f356542bc
commit cad7db0162
5 changed files with 16 additions and 17 deletions
@@ -116,7 +116,6 @@ class CreateProject(bpy.types.Operator):
def _execute(self, context):
props = context.scene.BIMProjectProperties
template = None if props.template_file == "0" else props.template_file
blenderbim.bim.schema.reload(props.export_schema)
if tool.Blender.is_default_scene():
for obj in bpy.data.objects:
bpy.data.objects.remove(obj)
@@ -125,6 +124,7 @@ class CreateProject(bpy.types.Operator):
for mat in bpy.data.materials:
bpy.data.materials.remove(mat)
core.create_project(tool.Ifc, tool.Project, tool.Spatial, schema=props.export_schema, template=template)
blenderbim.bim.schema.reload(tool.Ifc.get().schema_identifier)
tool.Blender.register_toolbar()
def rollback(self, data):