From c505630a204af6ee1e2d6866a65bce0523d0f6ae Mon Sep 17 00:00:00 2001 From: Andrej730 Date: Wed, 21 Aug 2024 17:24:54 +0500 Subject: [PATCH] fix error removing bcf topic comment --- src/bonsai/bonsai/bim/module/bcf/operator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bonsai/bonsai/bim/module/bcf/operator.py b/src/bonsai/bonsai/bim/module/bcf/operator.py index 01bd9e9a07..79c6b92a68 100644 --- a/src/bonsai/bonsai/bim/module/bcf/operator.py +++ b/src/bonsai/bonsai/bim/module/bcf/operator.py @@ -1066,7 +1066,7 @@ class RemoveBcfComment(bpy.types.Operator): blender_topic = props.active_topic topic = bcfxml.topics[blender_topic.name] comments = topic.comments - i = next(i for i, c in enumerate(comments) if c.guid != self.comment_guid) + i = next(i for i, c in enumerate(comments) if c.guid == self.comment_guid) del comments[i] topic.coments = comments bpy.ops.bim.load_bcf_comments(topic_guid=topic.guid)