mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-26 18:21:59 +00:00
See #1917. Refactor and fix warning message when you haven't got any contexts in a project yet.
This commit is contained in:
@@ -91,8 +91,8 @@ class CreateProject(bpy.types.Operator):
|
||||
tool.Ifc, context_type="Plan", context_identifier="Annotation", target_view="PLAN_VIEW", parent=plan
|
||||
)
|
||||
|
||||
ContextData.load(tool.Ifc.get())
|
||||
context.scene.BIMProperties.contexts = str(body_context.id())
|
||||
blenderbim.bim.handler.refresh_ui_data()
|
||||
context.scene.BIMRootProperties.contexts = str(body_context.id())
|
||||
|
||||
bpy.ops.bim.assign_class(obj=site.name, ifc_class="IfcSite")
|
||||
bpy.ops.bim.assign_class(obj=building.name, ifc_class="IfcBuilding")
|
||||
|
||||
Reference in New Issue
Block a user