minor change for RailingData

This commit is contained in:
Andrej730
2023-07-12 17:46:56 +05:00
parent ef8f825012
commit 4ad1a2be73
2 changed files with 6 additions and 2 deletions
@@ -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