@@ -916,6 +916,8 @@ def updateBcfProjectName(self, context):
916916
917917
918918def updateBcfTopicAttribute (context , name , value ):
919+ if not bpy .context .scene .BCFProperties .is_editable :
920+ return
919921 import bcfplugin
920922 props = bpy .context .scene .BCFProperties
921923 topic = bcf .BcfStore .topics [props .active_topic_index ][1 ]
@@ -925,8 +927,7 @@ def updateBcfTopicAttribute(context, name, value):
925927
926928
927929def updateBcfTopicName (self , context ):
928- if bpy .context .scene .BCFProperties .name :
929- updateBcfTopicAttribute (context , "title" , self .name )
930+ updateBcfTopicAttribute (context , "title" , self .name )
930931
931932
932933def updateBcfTopicType (self , context ):
@@ -945,6 +946,10 @@ def updateBcfTopicStage(self, context):
945946 updateBcfTopicAttribute (context , "stage" , self .topic_stage )
946947
947948
949+ def updateBcfTopicDescription (self , context ):
950+ updateBcfTopicAttribute (context , "description" , self .topic_description )
951+
952+
948953class BcfTopic (PropertyGroup ):
949954 name : StringProperty (name = "Name" , update = updateBcfTopicName )
950955
@@ -1634,6 +1639,7 @@ class BIMProperties(PropertyGroup):
16341639
16351640
16361641class BCFProperties (PropertyGroup ):
1642+ is_editable : BoolProperty (name = "Is Editable" , default = False )
16371643 name : StringProperty (default = "" , name = "Project Name" , update = updateBcfProjectName )
16381644 author : StringProperty (default = "john@doe.com" , name = "Author Email" )
16391645 topics : CollectionProperty (name = "BCF Topics" , type = BcfTopic )
@@ -1650,7 +1656,7 @@ class BCFProperties(PropertyGroup):
16501656 topic_modified_author : StringProperty (default = "" , name = "Topic Modified By" )
16511657 topic_assigned_to : StringProperty (default = "" , name = "Topic Assigned To" )
16521658 topic_due_date : StringProperty (default = "" , name = "Topic Due Date" )
1653- topic_description : StringProperty (default = "" , name = "Topic Description" )
1659+ topic_description : StringProperty (default = "" , name = "Topic Description" , update = updateBcfTopicDescription )
16541660 topic_labels : CollectionProperty (name = "BCF Topic Labels" , type = BcfTopicLabel )
16551661 topic_files : CollectionProperty (name = "BCF Topic Files" , type = BcfTopicFile )
16561662 topic_links : CollectionProperty (name = "BCF Topic Links" , type = BcfTopicLink )
0 commit comments