Implement support for editing BCF comments

This commit is contained in:
Dion Moult
2020-12-23 13:58:28 +11:00
parent b22055a588
commit 5a1f2ec4fe
4 changed files with 41 additions and 12 deletions
+6 -1
View File
@@ -566,10 +566,14 @@ def updateBcfTopicName(self, context):
def updateBcfTopicIsEditable(self, context):
if not self.is_editable:
print("EDITING!")
bpy.ops.bim.edit_bcf_topic()
def updateBcfCommentIsEditable(self, context):
if not self.is_editable:
bpy.ops.bim.edit_bcf_comment(comment_guid = self.name)
def refreshBcfTopic(self, context):
global bcfviewpoints_enum
bcfviewpoints_enum = None
@@ -985,6 +989,7 @@ class BcfComment(PropertyGroup):
viewpoint: StringProperty(name="Viewpoint")
modified_date: StringProperty(name="Modified Date")
modified_author: StringProperty(name="Modified Author")
is_editable: BoolProperty(name="Is Editable", default=False, update=updateBcfCommentIsEditable)
class BcfTopic(PropertyGroup):