mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-21 23:40:59 +00:00
Editing URIReference properties now provides a file browse button
This commit is contained in:
@@ -148,6 +148,7 @@ class EnablePsetEditing(bpy.types.Operator):
|
|||||||
new.is_null = data.get(prop_template.Name, None) is None
|
new.is_null = data.get(prop_template.Name, None) is None
|
||||||
new.is_optional = True
|
new.is_optional = True
|
||||||
new.data_type = data_type
|
new.data_type = data_type
|
||||||
|
new.is_uri = prop_template.PrimaryMeasureType == "IfcURIReference"
|
||||||
|
|
||||||
if data_type == "string":
|
if data_type == "string":
|
||||||
new.string_value = "" if new.is_null else data[prop_template.Name]
|
new.string_value = "" if new.is_null else data[prop_template.Name]
|
||||||
|
|||||||
Reference in New Issue
Block a user