mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-10 17:58:20 +00:00
minor change for RailingData
This commit is contained in:
@@ -367,6 +367,7 @@ class RailingData:
|
||||
cls.data = {}
|
||||
cls.data["parameters"] = cls.pset_data()
|
||||
cls.data["general_params"] = cls.general_params()
|
||||
cls.data["path_data"] = cls.path_data()
|
||||
|
||||
@classmethod
|
||||
def pset_data(cls):
|
||||
@@ -385,7 +386,10 @@ class RailingData:
|
||||
prop_readable_name = props.bl_rna.properties[prop_name].name
|
||||
general_params[prop_readable_name] = prop_value
|
||||
return general_params
|
||||
|
||||
|
||||
@classmethod
|
||||
def path_data(cls):
|
||||
return cls.data["parameters"]["data_dict"]["path_data"]
|
||||
|
||||
class RoofData:
|
||||
data = {}
|
||||
|
||||
@@ -123,7 +123,7 @@ def update_railing_modifier_bmesh(context):
|
||||
# NOTE: using Data since bmesh update will hapen very often
|
||||
if not RailingData.is_loaded:
|
||||
RailingData.load()
|
||||
path_data = RailingData.data["parameters"]["data_dict"]["path_data"]
|
||||
path_data = RailingData.data["path_data"]
|
||||
|
||||
si_conversion = ifcopenshell.util.unit.calculate_unit_scale(tool.Ifc.get())
|
||||
# need to make sure we support edit mode
|
||||
|
||||
Reference in New Issue
Block a user