mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-08 05:16:25 +00:00
Fix UI errors in Structural Analysis panel when project has no IfcStructuralAnalysisModel
This commit is contained in:
@@ -53,6 +53,9 @@ class LoadGroupDecorationData:
|
|||||||
"NOTDEFINED": "N.Def: ",
|
"NOTDEFINED": "N.Def: ",
|
||||||
}
|
}
|
||||||
models = tool.Ifc.get().by_type("IfcStructuralAnalysisModel")
|
models = tool.Ifc.get().by_type("IfcStructuralAnalysisModel")
|
||||||
|
if not models:
|
||||||
|
return ret
|
||||||
|
|
||||||
m = models[0]
|
m = models[0]
|
||||||
props = bpy.context.scene.BIMStructuralProperties
|
props = bpy.context.scene.BIMStructuralProperties
|
||||||
if props.activity_type == "Action":
|
if props.activity_type == "Action":
|
||||||
|
|||||||
Reference in New Issue
Block a user