mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-09 09:21:46 +00:00
Small tester UI fix #3487
This commit is contained in:
@@ -49,7 +49,8 @@ class FailedEntities(PropertyGroup):
|
||||
class IfcTesterProperties(PropertyGroup):
|
||||
specs: StringProperty(default="", name="IDS File")
|
||||
ifc_file: StringProperty(default="", name="IFC File")
|
||||
should_load_from_memory: BoolProperty(default=False, name="Load from Memory")
|
||||
should_load_from_memory: BoolProperty(default=False, name="Load from Memory",
|
||||
description="Use the currently opened IFC project. Required for the detailed Tester UI")
|
||||
|
||||
active_specification_index: IntProperty(name="Active Specification Index")
|
||||
active_requirement_index: IntProperty(name="Active Requirement Index")
|
||||
|
||||
@@ -35,9 +35,9 @@ class BIM_PT_tester(Panel):
|
||||
|
||||
self.props = context.scene.IfcTesterProperties
|
||||
|
||||
if tool.Ifc.get():
|
||||
row = self.layout.row()
|
||||
row.prop(self.props, "should_load_from_memory")
|
||||
row = self.layout.row()
|
||||
row.prop(self.props, "should_load_from_memory")
|
||||
row.enabled = bool(tool.Ifc.get())
|
||||
|
||||
if not tool.Ifc.get() or not self.props.should_load_from_memory:
|
||||
row = self.layout.row(align=True)
|
||||
|
||||
Reference in New Issue
Block a user