From 88b165e364d023ffc174ebb51c9efd18b9a61319 Mon Sep 17 00:00:00 2001 From: Chen Kasirer Date: Thu, 13 Feb 2025 17:59:32 +0100 Subject: [PATCH] changed to 1 based ref-side label names --- CHANGELOG.md | 1 + src/compas_timber/ghpython/components/CT_Show_Ref_Sides/code.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a434ae0f9..6284024ad 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -39,6 +39,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 * Changed `Show_beam_faces` gh component to `Show_ref_sides`, which now takes an `int` index and shows the corresponding face including origin corner. * Bug fixes after adding `max_distance` to joint defs. * Using new `JackRafterCutProxy` in LMiterJoint, LButtJoint and TButtJoint. +* Changed labels in `Show_ref_sides` GH component to be 1-based to match the spec. ### Removed diff --git a/src/compas_timber/ghpython/components/CT_Show_Ref_Sides/code.py b/src/compas_timber/ghpython/components/CT_Show_Ref_Sides/code.py index cf48ba66f..add3b5f3c 100644 --- a/src/compas_timber/ghpython/components/CT_Show_Ref_Sides/code.py +++ b/src/compas_timber/ghpython/components/CT_Show_Ref_Sides/code.py @@ -33,7 +33,7 @@ def RunScript(self, Beam, RefSideIndex): frame.point = surface.point_at(0, ht / 4.0) self.pl.append(frame_to_rhino(frame)) - self.txt.append("RS_{}".format(side_index)) + self.txt.append(surface.name) self.ht.append(ht) return srfs