mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-09 09:21:46 +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: ",
|
||||
}
|
||||
models = tool.Ifc.get().by_type("IfcStructuralAnalysisModel")
|
||||
if not models:
|
||||
return ret
|
||||
|
||||
m = models[0]
|
||||
props = bpy.context.scene.BIMStructuralProperties
|
||||
if props.activity_type == "Action":
|
||||
|
||||
Reference in New Issue
Block a user