mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-28 19:27:10 +00:00
Fix bug where lag times couldn't be edited
This commit is contained in:
@@ -1681,6 +1681,10 @@ class EnableEditingSequenceTimeLag(bpy.types.Operator):
|
|||||||
|
|
||||||
def import_attributes(self, name, prop, data):
|
def import_attributes(self, name, prop, data):
|
||||||
if name == "LagValue":
|
if name == "LagValue":
|
||||||
|
prop = self.props.time_lag_attributes.add()
|
||||||
|
prop.name = name
|
||||||
|
prop.is_null = data[name] is None
|
||||||
|
prop.is_optional = False
|
||||||
if isinstance(data[name], isodate.Duration):
|
if isinstance(data[name], isodate.Duration):
|
||||||
prop.data_type = "string"
|
prop.data_type = "string"
|
||||||
prop.string_value = (
|
prop.string_value = (
|
||||||
|
|||||||
Reference in New Issue
Block a user