Skip to content

Commit 9f57cd8

Browse files
fix: actually update the o_beam_cloud point cloud list
1 parent c892eaa commit 9f57cd8

File tree

1 file changed

+2
-2
lines changed
  • src/gh/components/DF_CAD_segmentator

1 file changed

+2
-2
lines changed

src/gh/components/DF_CAD_segmentator/code.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,9 @@ def RunScript(self,
7171

7272
o_beam_clouds = [df_cvt_bindings.cvt_dfcloud_2_rhcloud(cluster) for cluster in df_clusters]
7373

74-
for o_beam_cloud in o_beam_clouds:
74+
for i, o_beam_cloud in enumerate(o_beam_clouds):
7575
if not o_beam_cloud.IsValid:
76-
o_beam_cloud = None
76+
o_beam_clouds[i] = None
7777
ghenv.Component.AddRuntimeMessage(RML.Warning, "Some beams could not be segmented and were replaced by 'None'") # noqa: F821
7878

7979
o_face_clouds = th.list_to_tree(o_face_clusters)

0 commit comments

Comments
 (0)