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