mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-28 11:18:18 +00:00
Support for setting the BCF author. You can also now edit basic BCF topic metadata.
This commit is contained in:
@@ -516,13 +516,14 @@ class LoadBcfProject(bpy.types.Operator):
|
||||
import bcfplugin
|
||||
|
||||
bcfplugin.openProject(self.filepath)
|
||||
bpy.context.scene.BCFProperties.name = bcfplugin.getProjectName()
|
||||
bcf.BcfStore.topics = bcfplugin.getTopics()
|
||||
while len(bpy.context.scene.BCFProperties.topics) > 0:
|
||||
bpy.context.scene.BCFProperties.topics.remove(0)
|
||||
for topic in bcf.BcfStore.topics:
|
||||
new = bpy.context.scene.BCFProperties.topics.add()
|
||||
new.name = topic[0]
|
||||
# Note: set this last, as we use it to check whether or not the project has been loaded
|
||||
bpy.context.scene.BCFProperties.name = bcfplugin.getProjectName()
|
||||
return {"FINISHED"}
|
||||
|
||||
def invoke(self, context, event):
|
||||
|
||||
Reference in New Issue
Block a user