mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-11 18:16:40 +00:00
Fix issue with custom diagram scale (1d5891f)
It was referring to non-existent prop "custom_diagram_scale"
This commit is contained in:
@@ -417,10 +417,11 @@ def parse_diagram_scale(camera: bpy.types.Camera) -> float:
|
||||
"""Returns numeric value of scale"""
|
||||
props = tool.Drawing.get_camera_props(camera)
|
||||
if props.diagram_scale == "CUSTOM":
|
||||
_, fraction = props.custom_diagram_scale.split("|")
|
||||
numerator = props.custom_scale_numerator
|
||||
denominator = props.custom_scale_denominator
|
||||
else:
|
||||
_, fraction = props.diagram_scale.split("|")
|
||||
numerator, denominator = fraction.split("/")
|
||||
numerator, denominator = fraction.split("/")
|
||||
return float(numerator) / float(denominator)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user