mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-25 06:09:16 +00:00
fix EditBcfTopic and EditBcfTopicName
This commit is contained in:
@@ -218,7 +218,7 @@ class EditBcfTopicName(bpy.types.Operator):
|
|||||||
props = context.scene.BCFProperties
|
props = context.scene.BCFProperties
|
||||||
blender_topic = props.active_topic
|
blender_topic = props.active_topic
|
||||||
bcfxml = bcfstore.BcfStore.get_bcfxml()
|
bcfxml = bcfstore.BcfStore.get_bcfxml()
|
||||||
topic = bcfxml.topics[blender_topic.name]
|
topic = bcfxml.topics[blender_topic.name].topic
|
||||||
topic.title = blender_topic.title
|
topic.title = blender_topic.title
|
||||||
return {"FINISHED"}
|
return {"FINISHED"}
|
||||||
|
|
||||||
@@ -233,7 +233,7 @@ class EditBcfTopic(bpy.types.Operator):
|
|||||||
blender_topic = props.active_topic
|
blender_topic = props.active_topic
|
||||||
bcfxml = bcfstore.BcfStore.get_bcfxml()
|
bcfxml = bcfstore.BcfStore.get_bcfxml()
|
||||||
|
|
||||||
topic = bcfxml.topics[blender_topic.name]
|
topic = bcfxml.topics[blender_topic.name].topic
|
||||||
topic.title = blender_topic.title or None
|
topic.title = blender_topic.title or None
|
||||||
topic.priority = blender_topic.priority or None
|
topic.priority = blender_topic.priority or None
|
||||||
topic.due_date = blender_topic.due_date or None
|
topic.due_date = blender_topic.due_date or None
|
||||||
|
|||||||
Reference in New Issue
Block a user