diff --git a/CHANGELOG.md b/CHANGELOG.md index 06e7f26ae..bec8013ae 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -20,6 +20,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 * Changed `TimberModel.plates` to return generator of `Plate` elements. * Changed `TimberModel.joints` to return generator of `Joint` elements. * Fixed polyline analysis for generating `SurfaceModel` +* Fixed errors in debug info components. ### Removed diff --git a/src/compas_timber/ghpython/components/CT_ShowFeatureErrors/code.py b/src/compas_timber/ghpython/components/CT_ShowFeatureErrors/code.py index a311ff31e..5696e1c1e 100644 --- a/src/compas_timber/ghpython/components/CT_ShowFeatureErrors/code.py +++ b/src/compas_timber/ghpython/components/CT_ShowFeatureErrors/code.py @@ -19,8 +19,8 @@ def RunScript(self, debug_info, index): index = int(index) % len(feature_errors) error = feature_errors[index] - geometries = [error.feature_geometry, error.beam_geometry] - geo_objs = [SceneObject(geo) for geo in geometries] + geometries = [error.feature_geometry, error.element_geometry] + geo_objs = [SceneObject(item=geo) for geo in geometries] output = [] for obj in geo_objs: output.extend(obj.draw()) diff --git a/src/compas_timber/ghpython/components/CT_ShowJoiningErrors/code.py b/src/compas_timber/ghpython/components/CT_ShowJoiningErrors/code.py index 2daa647d7..b4385545b 100644 --- a/src/compas_timber/ghpython/components/CT_ShowJoiningErrors/code.py +++ b/src/compas_timber/ghpython/components/CT_ShowJoiningErrors/code.py @@ -21,7 +21,7 @@ def RunScript(self, debug_info, index): geometries = [beam.blank for beam in error.beams] geometries.extend(error.debug_geometries) - geo_objs = [SceneObject(geo) for geo in geometries] + geo_objs = [SceneObject(item=geo) for geo in geometries] output = [] for obj in geo_objs: output.extend(obj.draw())