mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-19 06:39:13 +00:00
Fix #4085. Classification reference URIs now have a button you can jump to that link.
This commit is contained in:
@@ -239,6 +239,8 @@ class ReferenceUI:
|
|||||||
name = reference["Identification"] or "No Identification"
|
name = reference["Identification"] or "No Identification"
|
||||||
row.label(text=name, icon="ASSET_MANAGER")
|
row.label(text=name, icon="ASSET_MANAGER")
|
||||||
row.label(text=reference["Name"] or "")
|
row.label(text=reference["Name"] or "")
|
||||||
|
if reference["Location"]:
|
||||||
|
row.operator("bim.open_uri", icon="URL", text="").uri = reference["Location"]
|
||||||
if not self.props.active_reference_id:
|
if not self.props.active_reference_id:
|
||||||
op = row.operator("bim.enable_editing_classification_reference", text="", icon="GREASEPENCIL")
|
op = row.operator("bim.enable_editing_classification_reference", text="", icon="GREASEPENCIL")
|
||||||
op.reference = reference["id"]
|
op.reference = reference["id"]
|
||||||
|
|||||||
Reference in New Issue
Block a user